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. Executing two project side by side

Executing two project side by side

Scheduled Pinned Locked Moved C / C++ / MFC
c++json
6 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 Offline
    C Offline
    Coder Block
    wrote on last edited by
    #1

    Hi All, I have two project one in mfc and othe in Win32 from MFC project i create on .cpp file that used in win32 API application so i want to execute MFC application first and on the click of OK i want to execute WIN32 API application

    C D A 3 Replies Last reply
    0
    • C Coder Block

      Hi All, I have two project one in mfc and othe in Win32 from MFC project i create on .cpp file that used in win32 API application so i want to execute MFC application first and on the click of OK i want to execute WIN32 API application

      C Offline
      C Offline
      Chandrasekharan P
      wrote on last edited by
      #2

      Ok. But where are you stuck??

      Every new day is another chance to change your life.

      C 1 Reply Last reply
      0
      • C Chandrasekharan P

        Ok. But where are you stuck??

        Every new day is another chance to change your life.

        C Offline
        C Offline
        Coder Block
        wrote on last edited by
        #3

        Thanks for reply becouse for lots of trial i get first reply now my problem is strait forward i have two application on depend on another like i have mfc application for user selection to generate some data to create .cpp file now this .cpp file used by WIN32 API project to create a Win32 api exe my second project. my concern only with win32 exe not with MFC exe so i want to execute win32 exe after mfc application selection complete

        L 1 Reply Last reply
        0
        • C Coder Block

          Thanks for reply becouse for lots of trial i get first reply now my problem is strait forward i have two application on depend on another like i have mfc application for user selection to generate some data to create .cpp file now this .cpp file used by WIN32 API project to create a Win32 api exe my second project. my concern only with win32 exe not with MFC exe so i want to execute win32 exe after mfc application selection complete

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Coder Block wrote:

          i want to execute win32 exe after mfc application selection complete

          Yes but again, what is your problem? You want to do something after some other event, so add some code to your MFC app to start the second app at the appropriate time.

          Unrequited desire is character building. OriginalGriff

          1 Reply Last reply
          0
          • C Coder Block

            Hi All, I have two project one in mfc and othe in Win32 from MFC project i create on .cpp file that used in win32 API application so i want to execute MFC application first and on the click of OK i want to execute WIN32 API application

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

            Coder Block wrote:

            so i want to execute MFC application first and on the click of OK i want to execute WIN32 API application

            So have you tried using ShellExecute() or CreateProcess()?

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

            1 Reply Last reply
            0
            • C Coder Block

              Hi All, I have two project one in mfc and othe in Win32 from MFC project i create on .cpp file that used in win32 API application so i want to execute MFC application first and on the click of OK i want to execute WIN32 API application

              A Offline
              A Offline
              Albert Holguin
              wrote on last edited by
              #6

              Your question is not clear, those two should work fine side by side and interchangeably. MFC is based around the Win32 API, although you can't call MFC directly in a pure Win32 application without including the necessary libraries and linking the associated compiled MFC libraries.

              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