Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Impossible to start specified application... [modified] Pin
Mark Salsbery8-Jan-07 7:10
Mark Salsbery8-Jan-07 7:10 
GeneralRe: Impossible to start specified application... Pin
ayol121228-Jan-07 10:35
ayol121228-Jan-07 10:35 
QuestionCan't Create New Class with Wizard Pin
Reagan Conservative8-Jan-07 6:33
Reagan Conservative8-Jan-07 6:33 
AnswerRe: Can't Create New Class with Wizard Pin
Trollslayer8-Jan-07 6:35
mentorTrollslayer8-Jan-07 6:35 
GeneralRe: Can't Create New Class with Wizard Pin
Reagan Conservative8-Jan-07 6:43
Reagan Conservative8-Jan-07 6:43 
QuestionTerminate application during creation Pin
baerten8-Jan-07 5:01
baerten8-Jan-07 5:01 
AnswerRe: Terminate application during creation Pin
David Crow8-Jan-07 5:04
David Crow8-Jan-07 5:04 
AnswerRe: Terminate application during creation Pin
jhwurmbach8-Jan-07 5:38
jhwurmbach8-Jan-07 5:38 
So you are in (your CFrameWnd-derived class) CMainFrame::OnCreate?

Simply
return -1<br />

this is the official notification that the creation went wrong.

See the MFC-standard code:
if (!m_wndToolBar.CreateEx( this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
		| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
		!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
	{
        AfxMessageBox( "Failed to create wndToolBar\n", MB_ICONERROR);
		return -1;      // fail to create
	}



"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

AnswerThanks Pin
baerten9-Jan-07 21:35
baerten9-Jan-07 21:35 
QuestionADO cannot restore connection Pin
Daniel Kanev8-Jan-07 4:47
Daniel Kanev8-Jan-07 4:47 
QuestionForcing cursur to stay in CEdit Pin
Shay Harel8-Jan-07 4:21
Shay Harel8-Jan-07 4:21 
AnswerRe: Forcing cursur to stay in CEdit [modified] Pin
CPallini8-Jan-07 4:29
mveCPallini8-Jan-07 4:29 
GeneralRe: Forcing cursur to stay in CEdit Pin
toxcct8-Jan-07 4:35
toxcct8-Jan-07 4:35 
JokeOK teacher! Pin
CPallini8-Jan-07 7:28
mveCPallini8-Jan-07 7:28 
QuestionProblem using then event of OnSize Pin
Nothend8-Jan-07 3:56
Nothend8-Jan-07 3:56 
AnswerRe: Problem using then event of &amp;amp;amp;quot;OnSize&amp;amp;amp;quot; Pin
Cedric Moonen8-Jan-07 4:10
Cedric Moonen8-Jan-07 4:10 
GeneralRe: Problem using then event of OnSize Pin
Nothend8-Jan-07 13:50
Nothend8-Jan-07 13:50 
AnswerRe: Problem using then event of &amp;amp;amp;quot;OnSize&amp;amp;amp;quot; Pin
Cedric Moonen8-Jan-07 4:19
Cedric Moonen8-Jan-07 4:19 
GeneralRe: Problem using then event of &amp;amp;amp;quot;OnSize&amp;amp;amp;quot; Pin
Nothend8-Jan-07 13:52
Nothend8-Jan-07 13:52 
GeneralRe: Problem using then event of &amp;amp;amp;quot;OnSize&amp;amp;amp;quot; Pin
Hamid_RT8-Jan-07 17:38
Hamid_RT8-Jan-07 17:38 
QuestionRe: Problem using then event of OnSize Pin
Hamid_RT8-Jan-07 17:37
Hamid_RT8-Jan-07 17:37 
AnswerRe: Problem using then event of OnSize Pin
Nothend8-Jan-07 18:33
Nothend8-Jan-07 18:33 
GeneralRe: Problem using then event of OnSize Pin
Hamid_RT8-Jan-07 19:15
Hamid_RT8-Jan-07 19:15 
GeneralRe: Problem using then event of OnSize Pin
Nothend8-Jan-07 20:04
Nothend8-Jan-07 20:04 
GeneralRe: Problem using then event of OnSize Pin
Nothend8-Jan-07 20:09
Nothend8-Jan-07 20:09 

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.