Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC WPF dialog
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 24-Aug-11 13:53pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 24 Aug 2011
Copyright © CodeProject, 1999-2014
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