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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Running another application within a window

Running another application within a window

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
6 Posts 3 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.
  • T Offline
    T Offline
    TuPacMansur
    wrote on last edited by
    #1

    Hello Guys, I've an old Win32 application, which is written in C. The problem is that for some reason, we need to convert it to MFC. I'd prefer is a separate application that can swallow and show instances of Win32-App and provide the interface. Is it possible? I'd love to know. Umer Mansoor

    N M 2 Replies Last reply
    0
    • T TuPacMansur

      Hello Guys, I've an old Win32 application, which is written in C. The problem is that for some reason, we need to convert it to MFC. I'd prefer is a separate application that can swallow and show instances of Win32-App and provide the interface. Is it possible? I'd love to know. Umer Mansoor

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

      Did u mean u want to run another application from the old one? If so the functions like ShellExecute() and CreateProcess() will help u. nave

      T 2 Replies Last reply
      0
      • N Naveen

        Did u mean u want to run another application from the old one? If so the functions like ShellExecute() and CreateProcess() will help u. nave

        T Offline
        T Offline
        TuPacMansur
        wrote on last edited by
        #3

        Nave, Thanks for replying. Let me clarify: We've a Win32 application with source code. I want to create a new MFC application. Now I want to run Win32-app in way that it only appears in my MFC application (not on taskbar, not on desktop) but *inside* my MFC application. [That is the MFC-app becomes the parent of the Win32-app] This will allow me to keep the Win32-app intact, while the outer-frame will be in MFC, which offcourse, I'll customize way more easily than Win32. ShellExecute() I think won't help as it still create a new instance on the desktop. I can still pass the handle to my MFC application but that will only relay messages to my MFC app. Umer Mansoor

        1 Reply Last reply
        0
        • N Naveen

          Did u mean u want to run another application from the old one? If so the functions like ShellExecute() and CreateProcess() will help u. nave

          T Offline
          T Offline
          TuPacMansur
          wrote on last edited by
          #4

          I know converting Win32-app to ActiveX looks like a good idea. I'm here to explore other options. Umer Mansoor

          1 Reply Last reply
          0
          • T TuPacMansur

            Hello Guys, I've an old Win32 application, which is written in C. The problem is that for some reason, we need to convert it to MFC. I'd prefer is a separate application that can swallow and show instances of Win32-App and provide the interface. Is it possible? I'd love to know. Umer Mansoor

            M Offline
            M Offline
            Malli_S
            wrote on last edited by
            #5

            For your 'ShellExecute()' will work. If you don't wanna to display the process(on desktop/taskbar), just put last parameter of the fuction as 'SW_HIDE'(0). Well ! Try it... -Malli...!****

            T 1 Reply Last reply
            0
            • M Malli_S

              For your 'ShellExecute()' will work. If you don't wanna to display the process(on desktop/taskbar), just put last parameter of the fuction as 'SW_HIDE'(0). Well ! Try it... -Malli...!****

              T Offline
              T Offline
              TuPacMansur
              wrote on last edited by
              #6

              didn't work!!! i want to show it, not hide it, but INSIDE my APP Umer Mansoor

              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