PostQuitMessage in WinCE 3.0
-
PostQuitMessage() and PostMessage(WM_QUIT,...) do not seem to work in WinCE PocketPC. I have an MFC WinCE app that uses CreateProcess() and WaintSingleObject() to create another MFC process. When the created process exits, I need to capture its exit code. I use GetExitCodeProcess() to do that. GetExitCodeProcess() always provides an exit status of 0. If the created process is just a simple Win32 WCE app, the exit code is correct. Any hints ? Is there something I'm missing? Thanks for any responses.
-
PostQuitMessage() and PostMessage(WM_QUIT,...) do not seem to work in WinCE PocketPC. I have an MFC WinCE app that uses CreateProcess() and WaintSingleObject() to create another MFC process. When the created process exits, I need to capture its exit code. I use GetExitCodeProcess() to do that. GetExitCodeProcess() always provides an exit status of 0. If the created process is just a simple Win32 WCE app, the exit code is correct. Any hints ? Is there something I'm missing? Thanks for any responses.
GetExitCodeProcess() always provides an exit status of 0. If the created process is just a simple Win32 WCE app, the exit code is correct. So, what's your complaint? I don't get what's your problem here. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
-
PostQuitMessage() and PostMessage(WM_QUIT,...) do not seem to work in WinCE PocketPC. I have an MFC WinCE app that uses CreateProcess() and WaintSingleObject() to create another MFC process. When the created process exits, I need to capture its exit code. I use GetExitCodeProcess() to do that. GetExitCodeProcess() always provides an exit status of 0. If the created process is just a simple Win32 WCE app, the exit code is correct. Any hints ? Is there something I'm missing? Thanks for any responses.
I'm having the exact same problem....try as I might, I cannot get my CE application to provide a non-zero exit code. Did you find the solution for this problem? Paul
-
I'm having the exact same problem....try as I might, I cannot get my CE application to provide a non-zero exit code. Did you find the solution for this problem? Paul
No I did not. Instead, I have the application what was spawned create a file if it successfully terminates. Then I check for the existance (or absence) of this file to determine the program's status.
-
No I did not. Instead, I have the application what was spawned create a file if it successfully terminates. Then I check for the existance (or absence) of this file to determine the program's status.
I was afraid of that. I was considering the same approach, but wanted to avoid it. I hate having files sitting around on a computer.