Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to use the CreateProcess???? Pin
30-May-01 23:12
suss30-May-01 23:12 
AnswerRe: how to use the CreateProcess???? Pin
coder847230-May-01 23:25
coder847230-May-01 23:25 
GeneralRe: how to use the CreateProcess???? Pin
31-May-01 19:07
suss31-May-01 19:07 
GeneralRe: how to use the CreateProcess???? Pin
31-May-01 19:07
suss31-May-01 19:07 
GeneralCTRL Pin
30-May-01 23:03
suss30-May-01 23:03 
GeneralRe: CTRL Pin
Christian Graus30-May-01 23:15
protectorChristian Graus30-May-01 23:15 
GeneralRe: CTRL Pin
Christian Graus30-May-01 23:16
protectorChristian Graus30-May-01 23:16 
GeneralGrid Control in CFormView Pin
markkuk30-May-01 21:14
markkuk30-May-01 21:14 


I'm trying to use the grid control in a CFormView-based class, by inserting a custom control in the dialog. My application fails with "Failed to create empty document" message at startup, the trace information from a debug run is as follows:


WndProc: hwnd=0x4C03D6, msg = WM_GETMINMAXINFO (0x0000, 0x0012F9FC)
WndProc: hwnd=0x4C03D6, msg = WM_NCCREATE (0x0000, 0x0012F9D0)
WndProc: hwnd=0x4C03D6, msg = WM_NCCALCSIZE (0x0000, 0x0012FA1C)
WndProc: hwnd=0x4C03D6, msg = WM_CREATE (0x0000, 0x0012F9BC)
WndProc: hwnd=0x2D02FE, msg = WM_NCCREATE (0x0000, 0x0012F394)
WndProc: hwnd=0x2D02FE, msg = WM_NCCALCSIZE (0x0000, 0x0012F3C4)
WndProc: hwnd=0x2D02FE, msg = WM_CREATE (0x0000, 0x0012F394)
WndProc: hwnd=0x2D02FE, msg = WM_SIZE (0x0000, 0x014501E0)
WndProc: hwnd=0x4C03D6, msg = 0x0368 (0x0000, 0x0012F0E4)
WndProc: hwnd=0x2D02FE, msg = WM_MOVE (0x0000, 0x00000000)
WndProc: hwnd=0x4C03D6, msg = WM_PARENTNOTIFY (0x0001, 0x002D02FE)
WndProc: hwnd=0x2D02FE, msg = WM_SETFONT (0x500A043F, 0x00000000)
WndProc: hwnd=0x4C03D6, msg = WM_PARENTNOTIFY (0x0002, 0x002D02FE)
WndProc: hwnd=0x2D02FE, msg = WM_DESTROY (0x0000, 0x00000000)
WndProc: hwnd=0x2D02FE, msg = WM_NCDESTROY (0x0000, 0x00000000)
Warning: could not create view for frame.
Failed to create client pane/view for frame.
WndProc: hwnd=0x4C03D6, msg = WM_DESTROY (0x0000, 0x00000000)
WndProc: hwnd=0x4C03D6, msg = WM_NCDESTROY (0x0000, 0x00000000)
Warning: Window creation failed: GetLastError returns 0x00000000
Warning: failed to create CFrameWnd.
Warning: CDocTemplate couldn't create a frame.
The thread 0x4C4 has exited with code 0 (0x0).
The program 'D:\TEMP\gctest\Debug\gctest.exe' has exited with code 0 (0x0).


The first warning is caused by ::CreateDialogIndirect() failing when the CMainFrame is being created. Then everything else fails because there is no main window.



Any idea why the window creation fails? Is some additional initialization needed?


GeneralRe: Grid Control in CFormView Pin
31-May-01 19:18
suss31-May-01 19:18 
GeneralRe: MFC Grid Control in CFormView Pin
markkuk31-May-01 20:27
markkuk31-May-01 20:27 
GeneralRe: MFC Grid Control in CFormView Pin
Tomasz Sowinski1-Jun-01 0:37
Tomasz Sowinski1-Jun-01 0:37 
GeneralRe: MFC Grid Control in CFormView Pin
markkuk1-Jun-01 2:07
markkuk1-Jun-01 2:07 
GeneralRe: Grid Control in CFormView Pin
5-Jun-01 22:19
suss5-Jun-01 22:19 
GeneralMSComm produces memory leak Pin
D.D. de Kerf30-May-01 20:40
D.D. de Kerf30-May-01 20:40 
GeneralRe: MSComm produces memory leak Pin
31-May-01 8:02
suss31-May-01 8:02 
GeneralRe: MSComm produces memory leak Pin
D.D. de Kerf31-May-01 21:26
D.D. de Kerf31-May-01 21:26 
GeneralRe: MSComm produces memory leak (the solution!) Pin
D.D. de Kerf6-Jun-01 20:56
D.D. de Kerf6-Jun-01 20:56 
GeneralDestructor not being called Pin
Miroslav Rajcic30-May-01 20:08
Miroslav Rajcic30-May-01 20:08 
GeneralRe: Destructor not being called Pin
30-May-01 20:16
suss30-May-01 20:16 
GeneralRe: Destructor not being called Pin
Miroslav Rajcic30-May-01 20:35
Miroslav Rajcic30-May-01 20:35 
GeneralRe: Destructor not being called Pin
Christian Graus30-May-01 20:41
protectorChristian Graus30-May-01 20:41 
GeneralThanks Pin
Miroslav Rajcic30-May-01 20:42
Miroslav Rajcic30-May-01 20:42 
QuestionW2K/multi-CPU overlapped sockets bug? Pin
Taka Muraoka30-May-01 19:45
Taka Muraoka30-May-01 19:45 
QuestionDocking Bar inside a DLL? Pin
Steve The Plant30-May-01 19:12
Steve The Plant30-May-01 19:12 
AnswerRe: Docking Bar inside a DLL? Pin
Tomasz Sowinski31-May-01 0:09
Tomasz Sowinski31-May-01 0:09 

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.