views:

67

answers:

3

Does a vc++ exe require the .Net framework to run, or will it run without the framework?

+4  A: 

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.

dkackman
+4  A: 

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.

Samir Talwar
Wait, vc++ has it's own runtime? yuck!
ajl
You don't need the runtime, if you link statically.
kenny
@ajl - is that comment serious?
Charles Boyung
+1  A: 

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.

Patrick