Thursday, May 6, 2010

Stand Alone Executable in Visual Studio

Another of those not so obvious thing about working with Visual Studio. Here are the list of things that one should try in order to get (hopefully) a standalone executable image (standard window's library dependence is OK).
  • Configuration Properties | General : If not using MFC classes then the option saying Use of MFC should be "Use Standard Windows Libraries". If using MFC then select "Use MFC in a Static Library" for the same option.
  • C/C++ | Code Generation : Runtime Library option should be Multi-threaded (/MT) or Multi-threaded Debug (/MTd) instead of Multi-threaded DLL (/MD) or Multi-threaded Debug DLL (/MDd)
  • Linker | Manifest File : Play with Enable User Account Control (UAC) to see if that helps

No comments:

Post a Comment