pure C++ vs Managed C++
How to build pure C++ application so that it doesn't have any dependencies? i am using VS 2008. I mean开发者_如何学运维, dependencies like dotnetfx framework, etc, other things required by managed C++ programs.
I think as long as you're not using the /clr
compiler flag in any way you'd be ok. See here for an article about compiling native C++ programs.
Just make sure you have the following setting in your general project options No Common Language Runtime support. The project is build without /CLR switch, so there is no .NET framework in it.
If you want to create a native C++ project - that does not use the .NET framework then you want to create a new Win32 project.
Goto File -> new project choose Win32 project (either console or windows) it's located under "other languages" -> "Visual C++"
精彩评论