use MFC Controls in WinForms?

  • Thread starter msnews.microsoft.com
  • Start date
M

msnews.microsoft.com

Hi there,

is there a possibility to host MFC controls in a SWF Control?
I have a big MFC application and want to migrate to .NET. It is not possible
for me to rewrite all the MFC controls and views so I want to create a new
..NET based frame and use the old MFC controlbars and editors.
Is there a way (e.g. with subclassing / superclassing) to create a managed
wrapper around my old MFC CWnd and CVeiw derived classes?
I know that I could create ActiveX controls around them and use a RCW but
that would cause a lot of additional overhead.
There are some atricles saying that Whidbey bring support for hosting SWF
Controls in MFC. Is that also true for the oposite (MFC Controls in SWF)?

Thanks in advance

Thomas
 
T

Thomas

I'm sorry,
I thought that it is a common abbreviation, may be only used in my company.
I mean System.Windows.Forms - a little long to write it every time ;-)

Thomas
 
E

Ed Kaim [MSFT]

SWF is also the file format for Macromedia Flash files, so this could have
been a very different question :)

A general overview of interop is available at
http://msdn.microsoft.com/msdnmag/issues/01/08/interop/default.aspx.

Deeper guidance is available at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnlongmig/html/intmiglongch03.asp.
Although it's part of the Longhorn migration guide, this chapter is
applicable for interop between any unmanaged (native MFC) and managed
(Windows Forms) versions.
 

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