Click here to Skip to main content
11,702,929 members (62,438 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ MFC VC
Can we embed a application with .exe file in our MFC application?

suppose we have a application which is already developed and .exe is present and i want to use it in my project. is this possible? and how is it done?

I want both applications displayed on the same window.
Posted 15-Feb-12 1:42am
Edited 15-Feb-12 1:44am
pasztorpisti at 26-Jul-12 18:29pm
I have seen only one high quality program that had an exe embedded in it, that was Process Explorer. It is a 32 bit application but it has a 64 bit version embedded, so if you start it on a 64 bit windows it writes out the 64 bit exe to disk and starts the 64 bit version because only a 64 bit executable can exploit everything on a 64 bit system. However the purpose of embedding was completely different from your case.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I think the short answer is, no, you cannot do this. Your MFC application can start the other program, but embedding it (for example as a resource) would really not serve any useful purpose. It is also not clear what you mean by, I want both applications displayed on the same window.
chaiein at 15-Feb-12 23:23pm
I want both applications displayed on the same window means suppose i have a game developed and i have another application say something like virtual piano so is it possible to make a game and piano appear on the same window.example picture control where we can have a picture. is there a control where we can have another application.
Richard MacCutchan at 16-Feb-12 4:25am
I don't think there is any way to do this simply, as Windows applications always start in their own main window. I think you would need to redesign both applications to achieve this.
chaiein at 22-Feb-12 6:06am
Thank you for the information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 415
1 Sergey Alexandrovich Kryukov 325
2 OriginalGriff 260
3 CHill60 120
4 Andy Lanng 119
0 OriginalGriff 8,379
1 Sergey Alexandrovich Kryukov 7,587
2 CPallini 4,947
3 Maciej Los 4,501
4 Mika Wendelius 3,566

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 26 Jul 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100