MFC problem
:borg: Q1:
---
I have problem in creating window via MFC take a look at my code :
//drived form CWinApp
BOOL MyApp::InitInstance() {
m_pMainWnd = new MyWindow();
if(m_pMainWnd->SetTimer(0,1,NULL) !=1 ) return FALSE;
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}
//drived form CFrameWnd the constructor of the class i made
MyWindow::MyWindow(){
if(!InitMemory()){
MessageBox("Memory Allocation Failed\n\
Program Now Terminates...","Memory Error");
exit(0);
}
InitCPU();
romLoaded=loadRom();
invOP=false;
Create(NULL,"Chirp",WS_SYSMENU,
CRect (20,20,350,210),NULL,"MYMENU");
}
My programme crashes whats problem .... :down:
When I debuged it showed me problem on statement of show timer...
Every thing is perfect why program crashes
:borg: Q2:
---
I need help for jump table ,... a complete refrence (for C language of course:baaa: )