Adding an exe into resource in MFC
-
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
-
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
-
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
Add it as a custom resource, let's say "BIN" resource. Then use
FindResource
andLoadResource
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
-
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]
-
He wants to insert exe in his resource not run an exe file.
-
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
See Adding and extracting binary resources[^] does any help?