Do I need the .Net framework installed to run a vc++ 2008 exe?
Does a vc++ exe require the .Net framework to run,开发者_Python百科 or will it run without the framework?
Unless it is compiled with the /clr
flag you do not need the .NET framework. Of course if your c++ exe uses any .net components via COM interop you're back to needing the framework installed.
If you're using Managed C++, then yes, you will. However, if you're making a pure C++ application, you should just need the Visual C++ 2008 Runtime, which is a whole lot smaller.
Certainly you will need the .Net Framework installed for running the application,
(If you want to see the target Framework version then go to Project tab and select name of project Properties in Visual Studio).
Pure C++: no. Check your compile and link options to see if it includes .Net options (/clr) or libraries.
If not sure, use DependencyWalker to see which DLL's are actually required by your application.
精彩评论