Click here to Skip to main content
16,009,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSTL map question Pin
User 58385223-May-07 19:00
User 58385223-May-07 19:00 
AnswerRe: STL map question Pin
led mike23-May-07 19:48
led mike23-May-07 19:48 
GeneralRe: STL map question Pin
User 58385223-May-07 19:52
User 58385223-May-07 19:52 
GeneralRe: STL map question Pin
led mike24-May-07 4:45
led mike24-May-07 4:45 
AnswerRe: STL map question Pin
markkuk23-May-07 22:16
markkuk23-May-07 22:16 
AnswerRe: STL map question Pin
BadKarma23-May-07 22:56
BadKarma23-May-07 22:56 
QuestionWithout m_pMainWnd Pin
sawerr23-May-07 18:40
sawerr23-May-07 18:40 
AnswerRe: Without m_pMainWnd Pin
Naveen23-May-07 18:56
Naveen23-May-07 18:56 
After you have returned from the CMyApp::InitInstance(), the AfxWinMain() function calls the Run function of CWinApp. In that there is checking as shown below

int CWinApp::Run()<br />
{<br />
	if (m_pMainWnd == NULL && AfxOleGetUserCtrl())<br />
	{<br />
		// Not launched /Embedding or /Automation, but has no main window!<br />
		TRACE0("Warning: m_pMainWnd is NULL in CWinApp::Run - quitting application.\n");<br />
		AfxPostQuitMessage(0);<br />
	}<br />
        ....<br />
}


Now i think you undertand why your program didnt worked, when you comment that code.

nave

GeneralRe: Without m_pMainWnd Pin
sawerr23-May-07 19:40
sawerr23-May-07 19:40 
GeneralRe: Without m_pMainWnd Pin
Naveen23-May-07 19:50
Naveen23-May-07 19:50 
GeneralRe: Without m_pMainWnd Pin
tom groezer24-May-07 1:24
tom groezer24-May-07 1:24 
GeneralRe: Without m_pMainWnd Pin
Mark Salsbery24-May-07 7:37
Mark Salsbery24-May-07 7:37 
GeneralRe: Without m_pMainWnd Pin
Naveen24-May-07 13:57
Naveen24-May-07 13:57 
QuestionGit image on button Pin
prathuraj23-May-07 18:13
prathuraj23-May-07 18:13 
AnswerRe: Git image on button Pin
Hamid_RT23-May-07 18:53
Hamid_RT23-May-07 18:53 
GeneralRe: Git image on button Pin
prathuraj23-May-07 19:00
prathuraj23-May-07 19:00 
GeneralRe: Git image on button Pin
Hamid_RT23-May-07 19:04
Hamid_RT23-May-07 19:04 
AnswerRe: Git image on button Pin
Mark Salsbery24-May-07 7:39
Mark Salsbery24-May-07 7:39 
QuestionHow to disable a specified USB-FLASH DISK on WM_DEVICECHANGE Pin
wangerpang23-May-07 17:41
wangerpang23-May-07 17:41 
QuestionAny suggestion in implementing this idea? Pin
Aint23-May-07 15:26
Aint23-May-07 15:26 
QuestionRe: Any suggestion in implementing this idea? Pin
Hamid_RT23-May-07 19:01
Hamid_RT23-May-07 19:01 
AnswerRe: Any suggestion in implementing this idea? Pin
Aint24-May-07 22:50
Aint24-May-07 22:50 
GeneralRe: Any suggestion in implementing this idea? Pin
Hamid_RT25-May-07 1:42
Hamid_RT25-May-07 1:42 
AnswerRe: Any suggestion in implementing this idea? Pin
Nelek23-May-07 20:05
protectorNelek23-May-07 20:05 
QuestionFFT and SVD Pin
zqueezy23-May-07 15:08
zqueezy23-May-07 15:08 

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.