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!
Comments
- Anonymous
November 16, 2005
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. - Anonymous
November 17, 2005
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?