Click here to Skip to main content
12,999,628 members (57,977 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Updated 15-Feb-12 1:44am
pasztorpisti 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 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 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 26 Jul 2012
Copyright © CodeProject, 1999-2017
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