Archive for January, 2013

Using Visual Studio 2012… Safely…

Thursday, January 10th, 2013

Microsoft Visual Studio 2012 isn’t so bad. 😉 I actually even like new dark looks. But (for C++) you shouldn’t use the default settings, our you’ll get problems with your older customers.

 

1. Making it run with XP

Go to “configuration properties > general” and switch the “Platform toolset” to “Visual Studio 2012 – Windows XP (v110_xp)”.

 

2. Making it run on older systems

This caused me hours of work. By default VS2012 will “optimize” fp-operations. But it doesn’t work on all systems. Don’t know if it’s the older processors but I had at least 2 customers where a simple statement as “myfpvar=1” caused the program to terminate without error message. To fix this go to “C++> Code generation” and set “Enable enhanced instruction set” to “No Enhanced Instructions (/arch:IA32)”.