Hi,
this code is not working,
why?
If executed, appears "Assertion Failed" message.Code:#include <afxwin.h> #include <afxtempl.h> #include "resource.h" class CTestXApp : public CWinApp { public: BOOL InitInstance() { /// works with this: CFrameWnd* pMainFrame = new CFrameWnd; CMDIFrameWnd* pMainFrame = new CMDIFrameWnd; m_pMainWnd = pMainFrame; pMainFrame->Create (NULL, "My App"); pMainFrame->ActivateFrame(); return TRUE; } }; CTestXApp theApp;
I really appreciate If somebody gives a little simple (very simple) sample of creating CMDIFrame and blank child windows.



LinkBack URL
About LinkBacks


