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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Execute a *.exe inside my application

Execute a *.exe inside my application

Scheduled Pinned Locked Moved C / C++ / MFC
c++hardwarequestion
4 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.
  • I Offline
    I Offline
    illidan99
    wrote on last edited by
    #1

    Hi, I'm Javier. I'm developing an application in VC++. I want to run another application(B) inside my application(A). In this moment the application B takes control and when it's closed, then my application A retakes the control. ¿Which function or class can I use for this? And anyone knows what's the similar to use in embedded Visual C++ for the equivalent PocketPC application? Thank you!. :-D:-D

    C V 2 Replies Last reply
    0
    • I illidan99

      Hi, I'm Javier. I'm developing an application in VC++. I want to run another application(B) inside my application(A). In this moment the application B takes control and when it's closed, then my application A retakes the control. ¿Which function or class can I use for this? And anyone knows what's the similar to use in embedded Visual C++ for the equivalent PocketPC application? Thank you!. :-D:-D

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #2

      Lookup CreateProcess api for starting the other .exe. Lookup WaitForSingleOnject api for 'waiting' for the .exe to end. Chris Meech I am Canadian. [heard in a local bar] ..a scientist venturing into the fields of philosophy and metaphysics is like Tie Domi figure skating. It's not a pretty sight. [Toronto Star Article]

      1 Reply Last reply
      0
      • I illidan99

        Hi, I'm Javier. I'm developing an application in VC++. I want to run another application(B) inside my application(A). In this moment the application B takes control and when it's closed, then my application A retakes the control. ¿Which function or class can I use for this? And anyone knows what's the similar to use in embedded Visual C++ for the equivalent PocketPC application? Thank you!. :-D:-D

        V Offline
        V Offline
        vcplusplus
        wrote on last edited by
        #3

        illidan99 wrote: I want to run another application(B) inside my application(A). In this moment the application B takes control and when it's closed, then my application A retakes the control. ¿Which function or class can I use for this? _spawnl(_P_WAIT, "c:\\MyApp.exe", "c:\\MyApp.exe", NULL, NULL); http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_crt__spawnl.2c_._wspawnl.asp[^]

        I 1 Reply Last reply
        0
        • V vcplusplus

          illidan99 wrote: I want to run another application(B) inside my application(A). In this moment the application B takes control and when it's closed, then my application A retakes the control. ¿Which function or class can I use for this? _spawnl(_P_WAIT, "c:\\MyApp.exe", "c:\\MyApp.exe", NULL, NULL); http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_crt__spawnl.2c_._wspawnl.asp[^]

          I Offline
          I Offline
          illidan99
          wrote on last edited by
          #4

          thank you!

          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