CWinFormsControl and VC.NEt

1)Is CWinFormsControl supported by VC.NET

2) How would I use a .NET control in native code in VC.NET.

I wrote some code in VC2005 using the CWinFormsControl class. I included afxwinforms.h in my stdafx.h file to facilitate the class. But when I tried running the code under CV.NET it said that afxwinforms wasn't found.

So my question is:Is CWinFormsControl supported by VC.NET. and if so do include afxwinforms.h or something else. and if this is not supported by VC.NEThow would I use a .NET control in native code in VC.NET.

Thanks!

[786 byte] By [DunceHat] at [2007-12-22]
# 1
I

assume you're getting a compiler error, not a runtime error.

Afxwinforms.h is located in the VC\atlmfc\include folder. You

won't have it if you're using the Express edition.

CWinFormsControl is documented so should be supported...

nobugz at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 2
I have VC2005 standard. But yeah, I'm getting a compile error saying that afxwinforms.h was not found when compiling using VC2003.net. When I looked at msdn online library under .NET and mfc class reference I didn't find a CWinFormsControl class but under the 2005 MFC class reference it is listed. So is VC2003.NET supposed to have afxwinforms.h ? or is my installation faulty?
DunceHat at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 3
Nope, VS2003 doesn't have afxwinforms.h

nobugz at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 4
is there some alternative for using a managed control? that is analogous to CWinFormsControl?
DunceHat at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 5
bahh... nevermind.. I talked my boss into getting vc2005pro... thanks anyways tho..
DunceHat at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ Language...