it\'s been a long while since I\'ve used VS 2010 and C++, and as I\'m getting back to using it, I\'m running into the same problems that plagued me last year: the exe\'s that I
Firstly, before I actually give you the detail:
If you do this, things will be bad for two reasons:
One possible solution is to bake the MSVC runtime into your application, by using the cl.exe
option (C/C++ compiler settings) /MT
which means multi-threaded version of the C/C++ runtime linked statically. As I said, if you try to link against something that is linked itself dynamically to the runtime, you're going to end up in a mess. Also, as I said, this represents an additional security risk factor, so bear that in mind.
The other options are to write an installer that can either download the appropriate runtime, or include the DLL needed.
If you're using some feature of the runtime that exceeds a certain version of Windows (generic statement, but it does happen) then you should be able to use the Windows SDK to target various versions of Windows using appropriate C runtimes.