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. How to call .exe file ?

How to call .exe file ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
16 Posts 11 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.
  • N nisha00000

    Hi Friends How to call one external .EXE file using MFC ?give any urls r something.... Thanks 'N' Advance :rose:Nisha.S

    S Offline
    S Offline
    SandipG
    wrote on last edited by
    #3

    You can use following functions 1. ShellExecute /ShellExecuteEx 2. CreateProcess

    Regards, Sandip.

    1 Reply Last reply
    0
    • N nisha00000

      Hi Friends How to call one external .EXE file using MFC ?give any urls r something.... Thanks 'N' Advance :rose:Nisha.S

      M Offline
      M Offline
      Mukesh Kumar
      wrote on last edited by
      #4

      use ShellExecute() method.

      ShellExecute(handle, _T("open"), <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);

      Mukesh Kumar Software Engineer

      1 Reply Last reply
      0
      • N nisha00000

        Hi Friends How to call one external .EXE file using MFC ?give any urls r something.... Thanks 'N' Advance :rose:Nisha.S

        H Offline
        H Offline
        hitonly2008
        wrote on last edited by
        #5

        ::ShellExecuteEx(LPSHELLEXECUTEINFO lpExecInfo); may be this can help you. YOu can launch any exe file using this function and filling the structure.

        1 Reply Last reply
        0
        • N nisha00000

          Hi Friends How to call one external .EXE file using MFC ?give any urls r something.... Thanks 'N' Advance :rose:Nisha.S

          S Offline
          S Offline
          sudhir_Kumar
          wrote on last edited by
          #6

          Use ShellExecute

          -@SuDhIrKuMaR@-

          C 1 Reply Last reply
          0
          • N nisha00000

            Hi Friends How to call one external .EXE file using MFC ?give any urls r something.... Thanks 'N' Advance :rose:Nisha.S

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

            nisha00000 wrote:

            give any urls r something

            http://www.codeproject.com/KB/system/newbiespawn.aspx[^].

            1 Reply Last reply
            0
            • S sudhir_Kumar

              Use ShellExecute

              -@SuDhIrKuMaR@-

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #8

              Please read the previous answers before posting. This has already been said three times before X|

              Cédric Moonen Software developer
              Charting control [v1.4]

              H 1 Reply Last reply
              0
              • C Cedric Moonen

                Please read the previous answers before posting. This has already been said three times before X|

                Cédric Moonen Software developer
                Charting control [v1.4]

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

                Do you know toxxct? ;P

                C 1 Reply Last reply
                0
                • H Hamid Taebi

                  Do you know toxxct? ;P

                  C Offline
                  C Offline
                  Cedric Moonen
                  wrote on last edited by
                  #10

                  Soon he will come and his wrath will be terrible :)

                  Cédric Moonen Software developer
                  Charting control [v1.4]

                  H T 2 Replies Last reply
                  0
                  • C Cedric Moonen

                    Soon he will come and his wrath will be terrible :)

                    Cédric Moonen Software developer
                    Charting control [v1.4]

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

                    Cedric Moonen wrote:

                    Soon he will come and his wrath will be terrible

                    Yeah Im agree with you. :laugh:

                    1 Reply Last reply
                    0
                    • C Cedric Moonen

                      Soon he will come and his wrath will be terrible :)

                      Cédric Moonen Software developer
                      Charting control [v1.4]

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

                      toxxct ? who's that ? :cool:

                      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                      C 1 Reply Last reply
                      0
                      • T toxcct

                        toxxct ? who's that ? :cool:

                        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                        C Offline
                        C Offline
                        Cedric Moonen
                        wrote on last edited by
                        #13

                        Your dark side maybe ? :rolleyes:

                        Cédric Moonen Software developer
                        Charting control [v1.4]

                        T 1 Reply Last reply
                        0
                        • C Cedric Moonen

                          Your dark side maybe ? :rolleyes:

                          Cédric Moonen Software developer
                          Charting control [v1.4]

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

                          ah, it was meant darkcct ? ^^

                          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                          1 Reply Last reply
                          0
                          • N nisha00000

                            Hi Friends How to call one external .EXE file using MFC ?give any urls r something.... Thanks 'N' Advance :rose:Nisha.S

                            J Offline
                            J Offline
                            Jagdish V Bhimbha
                            wrote on last edited by
                            #15

                            http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx http://www.developerfusion.co.uk/show/9/2/ http://msdn.microsoft.com/en-us/library/bb762154.aspx Best suitable : SHELLEXECUTEINFO info; memset(&info, 0, sizeof(SHELLEXECUTEINFO)); info.cbSize = sizeof(SHELLEXECUTEINFO); info.fMask = SEE_MASK_FLAG_NO_UI; info.lpVerb = _T ("open"); info.lpFile = sLink; // File Path... info.nShow = SW_SHOW; return :hellExecuteEx( &info ); Welcome in Advance... :-D

                            Jagdish Bhimbha

                            1 Reply Last reply
                            0
                            • N nisha00000

                              Hi Friends How to call one external .EXE file using MFC ?give any urls r something.... Thanks 'N' Advance :rose:Nisha.S

                              D Offline
                              D Offline
                              David Crow
                              wrote on last edited by
                              #16

                              You might read here first.

                              "Love people and use things, not love things and use people." - Unknown

                              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                              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