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. code to run sample.exe program?

code to run sample.exe program?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studioquestion
4 Posts 4 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.
  • Y Offline
    Y Offline
    Yonggoo
    wrote on last edited by
    #1

    Hi! I am trying to run an .exe file in my C++ code. Let me say, I have do.exe program. And another control_do.exe program that can run do.exe conditionally. Any code suggestion that is generic, not VC++? I am using Visual Studio 2005, but code is standard c++, but VC++. Thanks! Yonggoo

    M H _ 3 Replies Last reply
    0
    • Y Yonggoo

      Hi! I am trying to run an .exe file in my C++ code. Let me say, I have do.exe program. And another control_do.exe program that can run do.exe conditionally. Any code suggestion that is generic, not VC++? I am using Visual Studio 2005, but code is standard c++, but VC++. Thanks! Yonggoo

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      See the FAQ 6.4 How do I run another program from my program?[^] --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

      1 Reply Last reply
      0
      • Y Yonggoo

        Hi! I am trying to run an .exe file in my C++ code. Let me say, I have do.exe program. And another control_do.exe program that can run do.exe conditionally. Any code suggestion that is generic, not VC++? I am using Visual Studio 2005, but code is standard c++, but VC++. Thanks! Yonggoo

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        http://bobmoore.mvps.org/Win32/framed_tip043.htm[^]

        1 Reply Last reply
        0
        • Y Yonggoo

          Hi! I am trying to run an .exe file in my C++ code. Let me say, I have do.exe program. And another control_do.exe program that can run do.exe conditionally. Any code suggestion that is generic, not VC++? I am using Visual Studio 2005, but code is standard c++, but VC++. Thanks! Yonggoo

          _ Offline
          _ Offline
          _AnsHUMAN_
          wrote on last edited by
          #4

          Use shell Execute for example this line below opens a browser connecting to the appropriate link passed to it where xyz is the name of the site ShellExecute(NULL, NULL,"http://xyz.com", NULL, NULL,SW_NORMAL ); Vision is Always important and so is your ATTITUDE. Wishes. Anshuman Dandekar

          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