Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. PostQuitMessage in WinCE 3.0

PostQuitMessage in WinCE 3.0

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mel Stober
    wrote on last edited by
    #1

    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.

    J P 2 Replies Last reply
    0
    • M Mel Stober

      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.

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • M Mel Stober

        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.

        P Offline
        P Offline
        Paul Wolfensberger
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • P Paul Wolfensberger

          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

          M Offline
          M Offline
          Mel Stober
          wrote on last edited by
          #4

          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.

          P 1 Reply Last reply
          0
          • M Mel Stober

            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.

            P Offline
            P Offline
            Paul Wolfensberger
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups