Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Highlighting last item entered in list control always..NEEDED TODAY Pin
IrishSonic20-Jan-03 11:56
IrishSonic20-Jan-03 11:56 
GeneralAbout Microsoft NetMeeting SDK--SOS!!! Pin
fhning19-Jan-03 3:29
fhning19-Jan-03 3:29 
GeneralRe: About Microsoft NetMeeting SDK--SOS!!! Pin
Anonymous30-Jan-03 19:44
Anonymous30-Jan-03 19:44 
Generalcustom IE toolbar Pin
Mohsen Saad19-Jan-03 2:10
Mohsen Saad19-Jan-03 2:10 
GeneralRe: custom IE toolbar Pin
Michael Dunn19-Jan-03 8:40
sitebuilderMichael Dunn19-Jan-03 8:40 
General[Debugger] Unknown error return code Pin
Dominik Reichl19-Jan-03 1:16
Dominik Reichl19-Jan-03 1:16 
GeneralRe: [Debugger] Unknown error return code Pin
Michael Dunn19-Jan-03 8:42
sitebuilderMichael Dunn19-Jan-03 8:42 
GeneralRe: [Debugger] Unknown error return code Pin
Mike Nordell20-Jan-03 3:21
Mike Nordell20-Jan-03 3:21 
Michael Dunn wrote:
Back in the DOS days, 0 was ok and nonzero was error, but that's not a hard-and-fast rule.

Actually, it is. Using only the C or C++ programming languages, what's returned from main is what's used as argument to exit(), which obviously is the return code from the program. This is no Microsoft MS-DOS invention, it's C (and probably also POSIX).

Thread termination codes are in Win32 also defined - GetExitCodeThread returns it, and TerminateThread explicitly sets it. For a thread that terminates by returning to the function that created it (i.e. CreateThread) the exit code is what the thread function returns (again, to CreateThread).

The fact that _beginthread & co are specifying that the thread function returns void can be considered a bug.
GeneralSimple MFC Thread Pin
Ayush19-Jan-03 1:12
Ayush19-Jan-03 1:12 
GeneralRe: Simple MFC Thread Pin
PJ Arends19-Jan-03 6:24
professionalPJ Arends19-Jan-03 6:24 
GeneralRe: Simple MFC Thread Pin
Ayush19-Jan-03 9:17
Ayush19-Jan-03 9:17 
GeneralToolber & statusbar height Pin
S O S19-Jan-03 0:14
S O S19-Jan-03 0:14 
GeneralRe: Toolber & statusbar height Pin
567890123419-Jan-03 3:27
567890123419-Jan-03 3:27 
GeneralRe: Toolber & statusbar height Pin
S O S19-Jan-03 6:06
S O S19-Jan-03 6:06 
GeneralRe: Toolber & statusbar height Pin
HENDRIK R20-Jan-03 0:52
HENDRIK R20-Jan-03 0:52 
GeneralPerceptron Learning Rule Pin
Devashish Bhattacharjee19-Jan-03 0:00
Devashish Bhattacharjee19-Jan-03 0:00 
QuestionWhere can I get open source stream media server? Pin
George218-Jan-03 23:13
George218-Jan-03 23:13 
AnswerRe: Where can I get open source stream media server? Pin
Mike Nordell19-Jan-03 2:31
Mike Nordell19-Jan-03 2:31 
GeneralRe: Where can I get open source stream media server? Pin
George219-Jan-03 13:42
George219-Jan-03 13:42 
GeneralPATH environment variable Pin
Shehzad Jamil18-Jan-03 22:56
sussShehzad Jamil18-Jan-03 22:56 
GeneralRe: PATH environment variable Pin
Dominik Reichl19-Jan-03 1:22
Dominik Reichl19-Jan-03 1:22 
GeneralRe: PATH environment variable Pin
Fahad Jamil19-Jan-03 2:38
sussFahad Jamil19-Jan-03 2:38 
GeneralRe: PATH environment variable Pin
Anonymous19-Jan-03 22:51
Anonymous19-Jan-03 22:51 
GeneralRe: PATH environment variable Pin
Mike Nordell20-Jan-03 3:28
Mike Nordell20-Jan-03 3:28 
GeneralDebug Assertion Falied !! :(((( Pin
Alex H 198318-Jan-03 21:36
Alex H 198318-Jan-03 21:36 

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.