Click here to Skip to main content
15,896,532 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionExit Code Level 2 Pin
Llasus5-Nov-07 12:20
Llasus5-Nov-07 12:20 
AnswerRe: Exit Code Level 2 Pin
Mark Salsbery5-Nov-07 12:31
Mark Salsbery5-Nov-07 12:31 
GeneralRe: Exit Code Level 2 Pin
Llasus5-Nov-07 12:43
Llasus5-Nov-07 12:43 
GeneralRe: Exit Code Level 2 Pin
Mark Salsbery5-Nov-07 12:47
Mark Salsbery5-Nov-07 12:47 
GeneralRe: Exit Code Level 2 Pin
Llasus5-Nov-07 12:48
Llasus5-Nov-07 12:48 
GeneralRe: Exit Code Level 2 Pin
Mark Salsbery5-Nov-07 12:56
Mark Salsbery5-Nov-07 12:56 
GeneralRe: Exit Code Level 2 Pin
Llasus5-Nov-07 13:04
Llasus5-Nov-07 13:04 
GeneralRe: Exit Code Level 2 Pin
Mark Salsbery5-Nov-07 13:32
Mark Salsbery5-Nov-07 13:32 
These are probably the most common places a return value is returned from...

main: Program Startup[^]   (Applies to all C/C++ apps)
WinMain Function[^]         (Applies to Win32 apps)
CWinApp::ExitInstance[^]  (Applies to MFC apps)
CWinApp::Run[^]             (Applies to MFC apps - if you've overriden Run(), the returned value can override ExitInstance() return value)
PostQuitMessage Function[^] (Applies to all Windows applications)


Note that many of these propogate up the list depending on the type of application.
For example, in an MFC app, MFC has its own WinMain() and it's all handled by the
CRT main() so you only have to worry about the return value from ExitInstance() or in
rare circumstances, Run().

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Exit Code Level 2 Pin
Llasus5-Nov-07 13:47
Llasus5-Nov-07 13:47 
QuestionRe: Exit Code Level 2 Pin
David Crow5-Nov-07 16:25
David Crow5-Nov-07 16:25 
AnswerRe: Exit Code Level 2 Pin
Llasus5-Nov-07 16:50
Llasus5-Nov-07 16:50 
AnswerRe: Exit Code Level 2 Pin
Llasus5-Nov-07 17:10
Llasus5-Nov-07 17:10 
GeneralRe: Exit Code Level 2 Pin
David Crow6-Nov-07 2:45
David Crow6-Nov-07 2:45 
GeneralRe: Exit Code Level 2 Pin
Llasus6-Nov-07 14:45
Llasus6-Nov-07 14:45 
QuestionBuilding VC++ Samples from windows platform sdk server 2003 r2 Pin
shatterstar64575-Nov-07 11:15
shatterstar64575-Nov-07 11:15 
AnswerRe: Building VC++ Samples from windows platform sdk server 2003 r2 Pin
Mark Salsbery5-Nov-07 11:21
Mark Salsbery5-Nov-07 11:21 
GeneralRe: Building VC++ Samples from windows platform sdk server 2003 r2 Pin
shatterstar64575-Nov-07 11:53
shatterstar64575-Nov-07 11:53 
GeneralRe: Building VC++ Samples from windows platform sdk server 2003 r2 Pin
Mark Salsbery5-Nov-07 12:08
Mark Salsbery5-Nov-07 12:08 
GeneralRe: Building VC++ Samples from windows platform sdk server 2003 r2 Pin
Mark Salsbery5-Nov-07 12:51
Mark Salsbery5-Nov-07 12:51 
QuestionCan I create two Cbrush object at same time? [modified] Pin
Gofur Halmurat5-Nov-07 10:53
Gofur Halmurat5-Nov-07 10:53 
QuestionRe: Can I create two Cbrush object at same time? Pin
Mark Salsbery5-Nov-07 10:56
Mark Salsbery5-Nov-07 10:56 
AnswerRe: Can I create two Cbrush object at same time? Pin
Gofur Halmurat5-Nov-07 10:59
Gofur Halmurat5-Nov-07 10:59 
GeneralRe: Can I create two Cbrush object at same time? Pin
Mark Salsbery5-Nov-07 11:12
Mark Salsbery5-Nov-07 11:12 
GeneralRe: Can I create two Cbrush object at same time? Pin
Gofur Halmurat5-Nov-07 11:18
Gofur Halmurat5-Nov-07 11:18 
GeneralRe: Can I create two Cbrush object at same time? Pin
Mark Salsbery5-Nov-07 11:17
Mark Salsbery5-Nov-07 11:17 

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.