I installed XP on a virtual machine, updated it to SP3 and then tested a small program compiled with Visual C++ 2008 on my real computer – however it didn’t start but outputted only an error saying that a problem had been detected and that a reinstall of the application (mine is 10KB in size and doesn’t even have an installation) could fix the problem.
- What is required to run programs compiled with MSVC 9?
- Can I just include some dlls for it to work everywhere?
Either link statially against the runtime library (select
multithreadedinstead ofmultithreaded-dll) or follow tommieb75’s advice and install the MSVC9 runtime redistributable (copying to system32 or to the application’s folder works as well, but is not the way to go, afaik). For small applications with no need for an installer, I’d prefer the first option. Deploying runtime installers is annoying.