MFC and C# GUI

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top