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. Add two exe

Add two exe

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
12 Posts 5 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.
  • C Cedric Moonen

    What do you mean by adding two exe ? :confused: You mean use the second one in the first one ? Spawning it a new process is not enough ?

    Cédric Moonen Software developer
    Charting control [v1.5] OpenGL game tutorial in C++

    P Offline
    P Offline
    polopo
    wrote on last edited by
    #3

    Ok So there is any new options?

    singh

    _ 1 Reply Last reply
    0
    • P polopo

      Ok So there is any new options?

      singh

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

      you can't simply add two exe's or I am not getting what do you mean by adding? If you want to use the functionality from one exe in another one, you can include the relevant code/header/source files and then proceed.

      polopo wrote:

      So there is any new options?

      AFAIK, it wasn't there earlier.

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      P 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        you can't simply add two exe's or I am not getting what do you mean by adding? If you want to use the functionality from one exe in another one, you can include the relevant code/header/source files and then proceed.

        polopo wrote:

        So there is any new options?

        AFAIK, it wasn't there earlier.

        Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        P Offline
        P Offline
        polopo
        wrote on last edited by
        #5

        can you give me more details..Plz how can i do that.. First code is in Dialog based and second one is MDI.. Plz help me

        singh

        C R 2 Replies Last reply
        0
        • P polopo

          can you give me more details..Plz how can i do that.. First code is in Dialog based and second one is MDI.. Plz help me

          singh

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

          I guess you want to display your dialog from within your MDI app ? Can't you simply start it as a new program ? Or do you really need it to be integrated in your app ? If that's the case, then as the previous poster said, you will have to include the source files from your second app into your first app and add some code to create and use the dialog.

          Cédric Moonen Software developer
          Charting control [v1.5] OpenGL game tutorial in C++

          P 1 Reply Last reply
          0
          • P polopo

            can you give me more details..Plz how can i do that.. First code is in Dialog based and second one is MDI.. Plz help me

            singh

            R Offline
            R Offline
            Rane
            wrote on last edited by
            #7

            Still your question is not clear :confused:. Do you mean you need to call MDI appln from the Dialog based application? Regards, Rane

            P 1 Reply Last reply
            0
            • C Cedric Moonen

              I guess you want to display your dialog from within your MDI app ? Can't you simply start it as a new program ? Or do you really need it to be integrated in your app ? If that's the case, then as the previous poster said, you will have to include the source files from your second app into your first app and add some code to create and use the dialog.

              Cédric Moonen Software developer
              Charting control [v1.5] OpenGL game tutorial in C++

              P Offline
              P Offline
              polopo
              wrote on last edited by
              #8

              ok i try to do that. Thx's for help

              singh

              1 Reply Last reply
              0
              • R Rane

                Still your question is not clear :confused:. Do you mean you need to call MDI appln from the Dialog based application? Regards, Rane

                P Offline
                P Offline
                polopo
                wrote on last edited by
                #9

                yes you are 100% right..So can you give me small example

                singh

                R 1 Reply Last reply
                0
                • P polopo

                  yes you are 100% right..So can you give me small example

                  singh

                  R Offline
                  R Offline
                  Rane
                  wrote on last edited by
                  #10

                  You may use the API WinExec in your Dialog based application code. Say if you want to call the MDI application on the click of a button in your dialog based appln, then add it to the OnButtonClick() method the below piece of code. WinExec("c:\\Polopo_MDI.exe",SW_SHOWNORMAL); Regards, Rane

                  modified on Wednesday, September 3, 2008 3:43 AM

                  N P 2 Replies Last reply
                  0
                  • R Rane

                    You may use the API WinExec in your Dialog based application code. Say if you want to call the MDI application on the click of a button in your dialog based appln, then add it to the OnButtonClick() method the below piece of code. WinExec("c:\\Polopo_MDI.exe",SW_SHOWNORMAL); Regards, Rane

                    modified on Wednesday, September 3, 2008 3:43 AM

                    N Offline
                    N Offline
                    Naveen
                    wrote on last edited by
                    #11

                    Rane wrote:

                    You may use the API WinExec

                    This function is provided only for compatibility with 16-bit Windows. New applications should use the CreateProcess function or ShellExecute.

                    nave [OpenedFileFinder]

                    1 Reply Last reply
                    0
                    • R Rane

                      You may use the API WinExec in your Dialog based application code. Say if you want to call the MDI application on the click of a button in your dialog based appln, then add it to the OnButtonClick() method the below piece of code. WinExec("c:\\Polopo_MDI.exe",SW_SHOWNORMAL); Regards, Rane

                      modified on Wednesday, September 3, 2008 3:43 AM

                      P Offline
                      P Offline
                      polopo
                      wrote on last edited by
                      #12

                      Thxs,It is working

                      singh

                      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