I'm writing a C++ / CLI application, but I want most of the code in my C++ DLL to run natively (i.e. not managed).
I have only got a single CLI class in the module, the other files are all native C++.
So, what is the best way of ensuring that those native classes are run... Well, natively?
Should I:
Thanks
You don't have to jump through hoops to ensure this. The compiler will only ever emit IL when it compiles your program with the /clr option turned on. It looks like a project option but it is not.
Just select your .cpp files that contain native code. Select more than one of them by holding down the Ctrl key and clicking the file in the Explorer windows. Right-click + Properties, C/C++, General. Change the "Common Language Runtime Support" setting to "No...".