Click here to Skip to main content
15,889,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to pass data to another application? Pin
includeh101-Dec-04 4:03
includeh101-Dec-04 4:03 
GeneralRe: how to pass data to another application? Pin
David Crow1-Dec-04 4:13
David Crow1-Dec-04 4:13 
GeneralRe: how to pass data to another application? Pin
includeh101-Dec-04 4:21
includeh101-Dec-04 4:21 
GeneralRe: how to pass data to another application? Pin
includeh101-Dec-04 6:54
includeh101-Dec-04 6:54 
AnswerRe: how to pass data to another application? Pin
Peter Weyzen1-Dec-04 8:02
Peter Weyzen1-Dec-04 8:02 
GeneralMinimum pane size in a CSplitterWnd Pin
Jitendra gangwar1-Dec-04 3:22
Jitendra gangwar1-Dec-04 3:22 
GeneralProblem with CDialog::InitModalIndirect() Pin
Eugene Pustovoyt1-Dec-04 1:38
Eugene Pustovoyt1-Dec-04 1:38 
GeneralRe: Problem with CDialog::InitModalIndirect() Pin
John R. Shaw1-Dec-04 5:15
John R. Shaw1-Dec-04 5:15 
From MSDN: "To create a modal dialog box indirectly, first allocate a global block of memory and fill it with the dialog box template. Then call the empty CDialog constructor to construct the dialog-box object. Next, call InitModalIndirect to store your handle to the in-memory dialog-box template."

Here is the most IMPORTANT part:
"first allocate a global block of memory"

It does not matter which version of InitModalIndirect you call, the DLGTEMPLATE must be in a globaly allocated memory block. That means using GlobalAlloc(...).

If this is not the cause of exception, then the MSDN remarks section may be wrong.

The only question that remains is: who is responsible for freeing the memeory?

Search the MSDN for the sample code:
"DLGTEMPL: Creating Dialog Templates Dynamically"

Good Luck!

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralOMNIS Database Pin
si_691-Dec-04 1:32
si_691-Dec-04 1:32 
QuestionHow to have bitmaps in lib Pin
Jesper Knudsen1-Dec-04 0:35
Jesper Knudsen1-Dec-04 0:35 
AnswerRe: How to have bitmaps in lib Pin
John R. Shaw1-Dec-04 4:34
John R. Shaw1-Dec-04 4:34 
GeneralRe: How to have bitmaps in lib Pin
Jesper Knudsen1-Dec-04 20:12
Jesper Knudsen1-Dec-04 20:12 
GeneralSQLBulkOperations returns SQL_NEED_DATA with Oracle Pin
Anonymous1-Dec-04 0:10
Anonymous1-Dec-04 0:10 
GeneralColor for the Tree Control Item Pin
Neelesh K J Jain30-Nov-04 23:44
Neelesh K J Jain30-Nov-04 23:44 
GeneralRe: Color for the Tree Control Item Pin
RChin1-Dec-04 1:32
RChin1-Dec-04 1:32 
GeneralProblem with IHTMLDocument2 Pin
laurentmuratet30-Nov-04 23:40
laurentmuratet30-Nov-04 23:40 
GeneralRe: Problem with IHTMLDocument2 Pin
Neville Franks1-Dec-04 10:42
Neville Franks1-Dec-04 10:42 
GeneralEDIT CONTROL looses the connection Pin
elo471130-Nov-04 22:00
elo471130-Nov-04 22:00 
Generaldynamic C programming on Speech Recognition using RCM3400 Pin
Member 155701630-Nov-04 21:57
Member 155701630-Nov-04 21:57 
QuestionHow to make a ClistCtrl has a gridline look? Pin
LiYS30-Nov-04 21:55
LiYS30-Nov-04 21:55 
AnswerRe: How to make a ClistCtrl has a gridline look? Pin
mirex1-Dec-04 5:10
mirex1-Dec-04 5:10 
GeneralRe: How to make a ClistCtrl has a gridline look? Pin
LeeeNN1-Dec-04 7:00
LeeeNN1-Dec-04 7:00 
GeneralCAB project in Visual Studio .NET (Simple Q) Pin
anderslundsgard30-Nov-04 21:46
anderslundsgard30-Nov-04 21:46 
QuestionOPENFILENAME: Modify Places bar? Pin
peterchen30-Nov-04 21:22
peterchen30-Nov-04 21:22 
AnswerRe: OPENFILENAME: Modify Places bar? Pin
Maximilien1-Dec-04 2:25
Maximilien1-Dec-04 2:25 

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.