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. Invoking a .exe into VC++

Invoking a .exe into VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
5 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.
  • J Offline
    J Offline
    joy007
    wrote on last edited by
    #1

    Is it possible to invoke a .exe file into the code of VC++? If possible then how is it done?:-D

    T C 2 Replies Last reply
    0
    • J joy007

      Is it possible to invoke a .exe file into the code of VC++? If possible then how is it done?:-D

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      Have a look at how ShellExecute() works...


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      J 1 Reply Last reply
      0
      • J joy007

        Is it possible to invoke a .exe file into the code of VC++? If possible then how is it done?:-D

        C Offline
        C Offline
        Carlos Antollini
        wrote on last edited by
        #3

        Use ::CreateProcess function Carlos Antollini Do you know piFive[^] ?

        1 Reply Last reply
        0
        • T toxcct

          Have a look at how ShellExecute() works...


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          J Offline
          J Offline
          joy007
          wrote on last edited by
          #4

          In which class does it belong to? Actually , I am a newB in VC++.:confused:

          T 1 Reply Last reply
          0
          • J joy007

            In which class does it belong to? Actually , I am a newB in VC++.:confused:

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            This Is Example for using the ShellExecute.let you want to open the Notepad.exe. so ShellExecute will be used this way....

            ::ShellExecute(NULL,//Using Windos Desktop a Parent
            "open",//Open Vern Means that we are
            //launching app
            "notepad.exe",//application name
            "",//No paramter
            NULL,//use Current Directory
            SW_SHOWNORMAL);//launch in normal way


            "I Think this Will Help"

            visit me at http://www.thisisalok.tk
            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