Hi,
this code is not working,
why?
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;
If executed, appears "Assertion Failed" message.
I really appreciate If somebody gives a little simple (very simple) sample of creating CMDIFrame and blank child windows.