hi, i am new in MFC so i would need detail explaination and preferbly some codes
here is the application initialization
Code:
/////////////////////////////////////////////////////////////////////////////
CAsevApp theApp;
// CAsevApp initialization
BOOL CAsevApp::InitInstance()
{
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
RECT rec;
rec.bottom=100;
rec.left = 100;
rec.right = 100;
rec.top = 100;
main_window *m_pMainWnd = new main_window;
m_pMainWnd->Create(
"myWindowClass",
"title",
WS_OVERLAPPEDWINDOW,
rec, CWnd::GetDesktopWindow(),0,0);
return TRUE;
main_window is a derived class from CWnd, no extra stuff has been added
here i am trying to create a simple window with the "create" command
or more specifically, CWnd::Create command
what happens is that the program terminates immediately
i was expecting an empty movable/resizable window with the titlebar "title" to appear and stay there
is there something i did wrong?
please assist