MFC and C# GUI

  • Thread starter Thread starter Maor Mishkin
  • Start date Start date
M

Maor Mishkin

Hello,
I have a C# GUI (Frame) and would like to operate it in a C (MFC or other)
envierment is this posibale?
if yes what should I do and in which C GUI should I use?
Maor
 
Maor,

This operation is not supported. While you can use ActiveX controls in
..NET, .NET does not provide a way to export ActiveX controls. However,
there is an unsupported way, offered up by Chris Sells. You can find it at
(watch for line wrap):

http://www.ondotnet.com/pub/a/dotnet/2003/01/20/winformshosting.html

However, this is EXTREMELY unsupported. If you go this way, you will
then have to have your MFC app embed the ActiveX control.

If you don't need to support ActiveX controls, and just want to have a
form displayed, you can do that. You can just have your form as an object,
and expose that through COM, and then create the object and use it
appropriately.
Hope this helps.
 
Back
Top