Visual Studio 2005 has an amusing description of the /SWAPRUN:NET linker option:
Presumably, a poor soul in charge of the help text was told "go document this" without proper backup.
It seems this was noticed and corrected by the time Visual Studio 2010 was released:
Well, except that the part about it being a feature of Windows NT 4.0 is superfluous as VS2010-built executables require Windows XP SP2... but that one we can let slide....
Any visual studio builds executables runnable on any windows os (well, maybe actually "any windows os starting from win 95"). What you meant, I'm guessing, is the C-runtime library version requirement (and the appropriate entry in the EXE's manifest file), right? If not, I'd like to inform you that you can successfully make applications in VS2010 (and 2012) that run on win 95, 98, xp (without SPs). You just need to link to DLLs that are available on a given OS (or provide them).
...AND you can make any VS link your application to any version of the C-runtime lib you want. I always use the newest VS there is (currently 2012) and routinely link my EXEs to the default Windows' "msvcrt.dll" despite MS telling me not to. I don't use any fancy features from the CRT library (only simple C standard functions), so that old version is more than enough for me. I've never, ever seen anyone having problems running my applications. You may get into problems if you actually use some of the new runtime features, but that's obvious, I believe.
me - 09 03 13 - 17:36
Changing the CRT does get around a lot of it, but it's still the case that you have to change the build config a bit to do it. Also, newer versions of the linker will insist on raising the version field of the EXE header, preventing it from running on lower OSes. Microsoft had to undo this in the VS2012 linker to support XP again.
Phaeron - 10 03 13 - 07:26
Doesn't it say NT 4 (or later)? Which would include 2000, XP, Vista, 7 and 8 ...
Oscar - 24 04 13 - 00:46
i have a win98 that runs virtualdub 1.9.11 and i think there is no problem with >winnt 4 applications because i use KernelEx that allows the program to "think" he is running on a OS that you select. works but i cant use applications that uses any version of net framework... the file mscoree crashes everytime =/
im programmer too but im a noob with c++/c (i know vb), so anything what you guys could say about programming i will understand
lordpacco - 04 05 13 - 05:02