Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hlep!!!!how to disable messenger Service ?(VC++) Pin
Antony M Kancidrowski27-May-04 6:02
Antony M Kancidrowski27-May-04 6:02 
GeneralRe: hlep!!!!how to disable messenger Service ?(VC++) Pin
Antony M Kancidrowski27-May-04 6:05
Antony M Kancidrowski27-May-04 6:05 
GeneralRe: hlep!!!!how to disable messenger Service ?(VC++) Pin
zxb8888888827-May-04 6:11
zxb8888888827-May-04 6:11 
QuestionHow to read Windows Message Pin
louis27-May-04 4:13
louis27-May-04 4:13 
AnswerRe: How to read Windows Message Pin
David Crow27-May-04 4:37
David Crow27-May-04 4:37 
GeneralRe: How to read Windows Message Pin
louis28-May-04 2:16
louis28-May-04 2:16 
GeneralRe: How to read Windows Message Pin
David Crow28-May-04 2:36
David Crow28-May-04 2:36 
GeneralGetExitCodeProcess exit code always 0 on Win98 Pin
sexywetdeath27-May-04 3:55
sexywetdeath27-May-04 3:55 
I start a process using:

PROCESS_INFORMATION ProcessInfo = {0};
STARTUPINFO StartupInfo = {0};
bResult = CreateProcess(NULL, pszCommandLine, NULL, NULL, TRUE, 0, NULL, NULL, &StartupInfo, &ProcessInfo);

I then wait for it to finish using:

nNum = WaitForSingleObject(ProcessInfo.hProcess, INFINITE);

After I'm sure the process has finished I use:

DWORD nExitCode=0;
GetExitCodeProcess(hProcess, &nExitCode);

The call always succeeds and on most platforms gives the correct exit code. However, on Windows 98 the exit code is always 0. No matter what the executable specified in pszCommandLine actually returns.

To test this I used a very simple Win32 console application (that just exits with an error code other than 0) as my process.

Does anyone have any ideas why GetExitCodeProcess might always give the 0 exit code on windows 98?
GeneralRe: GetExitCodeProcess exit code always 0 on Win98 Pin
Alexander M.,27-May-04 8:32
Alexander M.,27-May-04 8:32 
Questionhow to use a lib file? Pin
FASTian27-May-04 3:45
FASTian27-May-04 3:45 
AnswerRe: how to use a lib file? Pin
David Crow27-May-04 3:57
David Crow27-May-04 3:57 
AnswerRe: how to use a lib file? Pin
Alexander M.,27-May-04 8:36
Alexander M.,27-May-04 8:36 
GeneralRe: how to use a lib file? Pin
FASTian30-May-04 21:19
FASTian30-May-04 21:19 
AnswerRe: how to use a lib file? Pin
mirex28-May-04 2:54
mirex28-May-04 2:54 
GeneralRe: how to use a lib file? Pin
Alexander M.,28-May-04 5:14
Alexander M.,28-May-04 5:14 
GeneralMapping array of CButtons Pin
dart1327-May-04 3:10
dart1327-May-04 3:10 
GeneralRe: Mapping array of CButtons Pin
David Crow27-May-04 3:10
David Crow27-May-04 3:10 
GeneralRe: Mapping array of CButtons Pin
dart1327-May-04 3:34
dart1327-May-04 3:34 
GeneralRe: Mapping array of CButtons Pin
David Crow27-May-04 3:52
David Crow27-May-04 3:52 
GeneralRe: Mapping array of CButtons Pin
dart1327-May-04 4:07
dart1327-May-04 4:07 
GeneralRe: Mapping array of CButtons Pin
David Crow27-May-04 4:34
David Crow27-May-04 4:34 
GeneralRe: Mapping array of CButtons Pin
dart1327-May-04 4:58
dart1327-May-04 4:58 
GeneralRe: Mapping array of CButtons Pin
Blake Miller27-May-04 5:30
Blake Miller27-May-04 5:30 
GeneralRe: Mapping array of CButtons Pin
dart1327-May-04 6:54
dart1327-May-04 6:54 
GeneralRe: Mapping array of CButtons Pin
David Fleming19-Aug-04 15:00
David Fleming19-Aug-04 15:00 

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.