Click here to Skip to main content
16,019,152 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compiling .cpp made from Matlab > Errors Pin
skyhr6-Mar-10 9:47
skyhr6-Mar-10 9:47 
GeneralRe: Compiling .cpp made from Matlab > Errors Pin
Richard MacCutchan6-Mar-10 21:26
mveRichard MacCutchan6-Mar-10 21:26 
GeneralRe: Compiling .cpp made from Matlab > Errors Pin
Eugen Podsypalnikov7-Mar-10 4:19
Eugen Podsypalnikov7-Mar-10 4:19 
AnswerRe: Compiling .cpp made from Matlab > Errors Pin
Avi Berger6-Mar-10 21:28
Avi Berger6-Mar-10 21:28 
QuestionHow to pass datas to a modal dialog? Pin
Aric Wang5-Mar-10 23:29
Aric Wang5-Mar-10 23:29 
AnswerRe: How to pass datas to a modal dialog? Pin
Richard MacCutchan5-Mar-10 23:33
mveRichard MacCutchan5-Mar-10 23:33 
AnswerRe: How to pass datas to a modal dialog? Pin
Eugen Podsypalnikov6-Mar-10 8:31
Eugen Podsypalnikov6-Mar-10 8:31 
AnswerRe: How to pass datas to a modal dialog? Pin
enhzflep6-Mar-10 19:33
enhzflep6-Mar-10 19:33 
The other alternative to the above suggestions, is that you define your own message, and use that to signal to your
child window that you've got some data for it.
I use the following code to pass an image to a child window.

IDC_COPYIMAGE is the message I defined. (#define IDC_COPYIMAGE 1010) There just needs to be an appropriate handler in the windowproc for the child dialog.

if (myWad.getLumpSize(myItem.iItem) == 4096)
{
    flatData = (char*)myWad.loadResource(resNum, &resLen);
    pal = (char*) myWad.loadResource(195, &resLen);
    darkMap = (char*) myWad.loadResource(1, &resLen);
    tmpImg = createImageFromFlat(flatData, pal, darkMap);
    delete pal;
    delete flatData;
    delete darkMap;
    SendMessage(imgChildHWND, IDC_COPYIMAGE, 0, (LPARAM)tmpImg);
    DeleteObject(tmpImg);
}

Question[MFC] Error when call function CreateDialog in method InitInstance in order to create a modeless dialog as main window [modified] Pin
rudyono5-Mar-10 22:59
rudyono5-Mar-10 22:59 
AnswerRe: [MFC] Error when call function CreateDialog in method InitInstance in order to create a modeless dialog as main window Pin
Richard MacCutchan5-Mar-10 23:05
mveRichard MacCutchan5-Mar-10 23:05 
GeneralRe: [MFC] Error when call function CreateDialog in method InitInstance in order to create a modeless dialog as main window Pin
rudyono5-Mar-10 23:13
rudyono5-Mar-10 23:13 
GeneralRe: [MFC] Error when call function CreateDialog in method InitInstance in order to create a modeless dialog as main window Pin
Richard MacCutchan5-Mar-10 23:29
mveRichard MacCutchan5-Mar-10 23:29 
AnswerRe: [MFC] Error when call function CreateDialog in method InitInstance in order to create a modeless dialog as main window Pin
Eugen Podsypalnikov6-Mar-10 8:51
Eugen Podsypalnikov6-Mar-10 8:51 
AnswerRe: [MFC] Error when call function CreateDialog in method InitInstance in order to create a modeless dialog as main window Pin
Avi Berger6-Mar-10 17:25
Avi Berger6-Mar-10 17:25 
GeneralRe: [MFC] Error when call function CreateDialog in method InitInstance in order to create a modeless dialog as main window Pin
rudyono12-Mar-10 4:23
rudyono12-Mar-10 4:23 
Questionconvert a CString value to DWORD Pin
learningvisualc5-Mar-10 20:43
learningvisualc5-Mar-10 20:43 
AnswerRe: convert a CString value to DWORD Pin
wangningyu5-Mar-10 22:34
wangningyu5-Mar-10 22:34 
AnswerRe: convert a CString value to DWORD Pin
loyal ginger6-Mar-10 1:59
loyal ginger6-Mar-10 1:59 
AnswerRe: convert a CString value to DWORD Pin
Alain Rist6-Mar-10 5:00
Alain Rist6-Mar-10 5:00 
QuestionAVIStreamWrite failed Pin
gmallax5-Mar-10 20:01
gmallax5-Mar-10 20:01 
GeneralRe: AVIStreamWrite failed Pin
jaapestaartje18-Oct-10 1:21
jaapestaartje18-Oct-10 1:21 
Questionhow to use CHtmlEditView in vc 6.0 Pin
sunnyram5-Mar-10 19:28
sunnyram5-Mar-10 19:28 
Questionhow to fnd files on http server? Pin
includeh105-Mar-10 18:27
includeh105-Mar-10 18:27 
AnswerRe: how to fnd files on http server? Pin
Tony Richards5-Mar-10 21:52
Tony Richards5-Mar-10 21:52 
AnswerRe: how to fnd files on http server? Pin
Moak6-Mar-10 1:04
Moak6-Mar-10 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.