Click here to Skip to main content
15,885,953 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I would like to host A MFC dialog (CDialog based)in a WPF application. Any sample programs on how to do that ?


I looked at

http://msdn.microsoft.com/en-us/library/aa970061.aspx


But that seems to be for a Win32 style dialog and not for a MFC dialog since there is reference to DLGPROC, how do I get DLGPROC from CDialog ?

I could not find any sample that shows how to do this.

-Shashi
Posted

I am sorry did not mean to post it many times

I was getting page load error after I hit the submit button, did not know It was already submitted. Is there a way to delete multiple posts ?

I was trying to implement a sample following the article below, but seems like its not for MFC, I totally understand what you said yesterday. But was hoping to have a way in which I could take advantage of WPF and write the main application in WPF without having to re write massive amount of plugins written in MFC.


http://msdn.microsoft.com/en-us/library/aa970061.aspx[^]
 
Share this answer
 
I seriously doubt you can benefit from this. Didn't I already provide you detail explanation of all of the issues?

See MFC Dll to be integrated into WPF application[^].

Why would you re-post this question three times? It won't help you. Do you think there another truth? OK, you badly want to save 15 years of past MFC development by some reason. But how much more time do your want to pay for that? Anyway, I've described your roadmap, you can use it for your development. The question is: why not sticking to MFC?

—SA
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900