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. Adding an exe into resource in MFC

Adding an exe into resource in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestionlearning
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.
  • V Offline
    V Offline
    Vikas K
    wrote on last edited by
    #1

    Hi, Can you please let me know how to do the following? I have a console exe that does something. I call this exe from Dialog based MFC app. I want to add this console exe into MFC resource and then use it in the MFC app. Can this be done? My idea here is to have only one exe instead of two :~. Thanks in advance Vikas

    S E H 3 Replies Last reply
    0
    • V Vikas K

      Hi, Can you please let me know how to do the following? I have a console exe that does something. I call this exe from Dialog based MFC app. I want to add this console exe into MFC resource and then use it in the MFC app. Can this be done? My idea here is to have only one exe instead of two :~. Thanks in advance Vikas

      S Offline
      S Offline
      sheshidar
      wrote on last edited by
      #2

      [Message Deleted]

      T H 2 Replies Last reply
      0
      • V Vikas K

        Hi, Can you please let me know how to do the following? I have a console exe that does something. I call this exe from Dialog based MFC app. I want to add this console exe into MFC resource and then use it in the MFC app. Can this be done? My idea here is to have only one exe instead of two :~. Thanks in advance Vikas

        E Offline
        E Offline
        Ernest Laurentin
        wrote on last edited by
        #3

        Add it as a custom resource, let's say "BIN" resource. Then use FindResource and LoadResource to access it. I guess you plan to run it, then dump it as a temp file and run it. I have used similar technique with driver and it works like a charm.

        God bless, Ernest Laurentin

        1 Reply Last reply
        0
        • S sheshidar

          [Message Deleted]

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

          don't reply to some when 1) you didn't read his question 2) you didn't understand his question 3) you don't know the topic 4) you don't know how to solve it you post is damn useless :zzz:

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

          1 Reply Last reply
          0
          • S sheshidar

            [Message Deleted]

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

            He wants to insert exe in his resource not run an exe file.

            1 Reply Last reply
            0
            • V Vikas K

              Hi, Can you please let me know how to do the following? I have a console exe that does something. I call this exe from Dialog based MFC app. I want to add this console exe into MFC resource and then use it in the MFC app. Can this be done? My idea here is to have only one exe instead of two :~. Thanks in advance Vikas

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

              See Adding and extracting binary resources[^] does any help?

              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