Welcome to MSDN Blogs Sign in | Join | Help

How to compile MFC and ATL code with /clr

C++/CLI

Do you want to use .NET from your COM DLL built with C++ and ATL? Well, it's not as easy as adding /CLR.

Have a look at a very instructive section under Mixed (Native and Managed) Assemblies: How to: Compile MFC and ATL Code with /clr.

I'm so glad I found it: I can give Maarten a hand helping the ISV he is taking care of!

Published Wednesday, November 16, 2005 10:30 PM by yvesdolc

Comments

# re: How to compile MFC and ATL code with /clr

Thursday, November 17, 2005 7:17 AM by Stephane Rodriguez

That certainly applies, but VS2003 has a bug and you'll have to make those changes (/Zi) by hand in the .vcproj file because the IDE won't make those for you. I guess it's fixed in VS2005, haven't tested tho.

# re: How to compile MFC and ATL code with /clr

Thursday, November 17, 2005 10:13 AM by yvesdolc
Merci Stéphan. I prefixed the entry with C++/CLI because it indeed applies to VC++ 2005. What bug are we talking about here?

Are we talking about http://www.arstdesign.com/BBS/BulletinBoard.php?qs_id=96?
Anonymous comments are disabled
 
Page view tracker