Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ MDI and CreateProcess Pin
led mike25-Sep-06 5:23
led mike25-Sep-06 5:23 
GeneralRe: C++ MDI and CreateProcess Pin
Christopher Stratmann25-Sep-06 5:38
Christopher Stratmann25-Sep-06 5:38 
GeneralRe: C++ MDI and CreateProcess Pin
led mike25-Sep-06 5:54
led mike25-Sep-06 5:54 
GeneralRe: C++ MDI and CreateProcess Pin
Christopher Stratmann25-Sep-06 6:40
Christopher Stratmann25-Sep-06 6:40 
GeneralRe: C++ MDI and CreateProcess Pin
led mike25-Sep-06 7:15
led mike25-Sep-06 7:15 
GeneralRe: C++ MDI and CreateProcess Pin
Christopher Stratmann25-Sep-06 7:22
Christopher Stratmann25-Sep-06 7:22 
GeneralRe: C++ MDI and CreateProcess Pin
led mike25-Sep-06 7:51
led mike25-Sep-06 7:51 
GeneralRe: C++ MDI and CreateProcess Pin
sps-itsec4615-Dec-06 1:53
sps-itsec4615-Dec-06 1:53 
Hi Chris,

have you been successful in connecting the MFC and Windows Forms world?

I currently have a similar problem: We want to expose a Windows Forms control as ActiveX and have no real clue on how to do this. As far as I can see there are some completely different approaches. One would be using a MFC ActiveX as host container for the Windows Forms control. And then using CWinFormsDialog or CWinFormsView to host the Windows Forms control. Another approach would be to rebuild the complete ActiveX interfaces with C# and expose it directly to COM.

So far, we tried approach one and created a MFC ActiveX container to host the Windows Forms control. Now, as we switched on Common Language Runtime support (/clr) we have the major problem that Visual Studio 2005 gets locked up while loading the project. Did you experience something similar? It really seems to have nothing to do with our project, VS2005 stop when loading CRT dlls like 'mscoree.dll', 'mscorwks.dll'.

The only thread I found about the problem is this[^]

Using MFC as unmanaged host for WinForms controls seems to be documented very badly. The basic examples[^] work flawlessly but if you want to do the same thing with a MFC ActiveX nothing seems to work!

Perhaps you can share a bit of your knowledge with me?


cheers,
mykel

If they give you lined paper, write the other way!

GeneralRe: C++ MDI and CreateProcess Pin
Christopher Stratmann25-Sep-06 7:22
Christopher Stratmann25-Sep-06 7:22 
AnswerRe: C++ MDI and CreateProcess Pin
led mike25-Sep-06 8:06
led mike25-Sep-06 8:06 
Questionsizeof(MyArray) returns wrong number Pin
Mr.Brainley25-Sep-06 3:55
Mr.Brainley25-Sep-06 3:55 
AnswerRe: sizeof(MyArray) returns wrong number Pin
prasad_som25-Sep-06 4:14
prasad_som25-Sep-06 4:14 
AnswerRe: sizeof(MyArray) returns wrong number Pin
toxcct25-Sep-06 4:54
toxcct25-Sep-06 4:54 
AnswerRe: sizeof(MyArray) returns wrong number Pin
Zac Howland25-Sep-06 5:37
Zac Howland25-Sep-06 5:37 
AnswerRe: sizeof(MyArray) returns wrong number Pin
Zodiacon25-Sep-06 6:57
Zodiacon25-Sep-06 6:57 
QuestionDialog Control Border Problem Pin
Tracy Hanahan25-Sep-06 3:51
Tracy Hanahan25-Sep-06 3:51 
QuestionA Simple Namespace Extension Question... Pin
Dave Kerr25-Sep-06 3:40
Dave Kerr25-Sep-06 3:40 
QuestionPassing CLR array to native function Pin
flackjack25-Sep-06 3:20
flackjack25-Sep-06 3:20 
AnswerRe: Passing CLR array to native function Pin
led mike25-Sep-06 4:42
led mike25-Sep-06 4:42 
GeneralRe: Passing CLR array to native function Pin
flackjack25-Sep-06 14:37
flackjack25-Sep-06 14:37 
GeneralRe: Passing CLR array to native function Pin
flackjack27-Sep-06 13:47
flackjack27-Sep-06 13:47 
QuestionCrash when a modal dialog is opened !! Pin
hatemtaleb25-Sep-06 3:19
hatemtaleb25-Sep-06 3:19 
QuestionRe: Crash when a modal dialog is opened !! Pin
prasad_som25-Sep-06 3:51
prasad_som25-Sep-06 3:51 
AnswerRe: Crash when a modal dialog is opened !! Pin
Hamid_RT25-Sep-06 4:22
Hamid_RT25-Sep-06 4:22 
Questionsmart pointers Pin
shadrach_india25-Sep-06 3:07
shadrach_india25-Sep-06 3:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.