   Need help - Visual Studio 2010 insists on compiling VS2008 sources
  I just reinstalled Windows 7 and I'm trying to set up my development environment again, but I've hit a wall.I'm using Visual Studio 2010 but I've always compiled my project with the v90 - setting (pre-C++0x runtime). The first time I try to compile the compiler says I need to install Visual Studio 2008 to enable building with v90. So I do that. But now Visual studio 2010 is in a state where it can't compile anything.After some digging I discovered that the $(VCInstallDir) macro is pointing to the wrong path, specifically the old VS2008 one: "C:\Program files(x86)\Visual Studio 9.0\VC\".It needs to be "C:\Program files(x86)\Visual Studio 10.0\VC\" for me to successfully compile my project. So far I've been unable to find a way to change it.Even if I manually append the correct paths to my project's include and source paths the Windows SDK will catch the macro someplace and throw a thousand compilation errors.Google doesn't really give many good results when I try to find a way to manually change the macro and I'm not sure how to proceed.I've already tried the following:Uninstalling and reinstalling VS 2008/2010 in different order.Manually set VSInstallDir as an environment variable in Windows and using the command prompt.Run the vsvars32.bat file in the VC\Tools folder. Did nothing.Install Visual studio 2010 service pack 1Does anyone know what to do here?
  Uhhhh just because you compile with parts of the C++0x run time does not mean that you are forced to use them. Its the same as if you were to program exclusively c code, you dont need to do anything in order to accomplish that in visual studio, just program. So, reinstall visual studio and continue programing. Why do you need to have visual studio set up in such a way?   ;I just reinstalled Windows 7 and I'm trying to set up my development environment again, but I've hit a wall.I'm using Visual Studio 2010 but I've always compiled my project with the v90 - setting (pre-C++0x runtime). The first time I try to compile the compiler says I need to install Visual Studio 2008 to enable building with v90. So I do that. But now Visual studio 2010 is in a state where it can't compile anything.Does anyone know what to do here?but VS2010 has a switch / option to compile it for the VC2008 runtime,and by the way(dont know if this helps) i tried to install VS2010 and then MSDN from VS2008, and guess what, it broke VS2010.i had to reinstall VS2010 and it then worked.   ;  Either stay with VS2008 or upgrade your projects to 2010.There is precisely zero value in trying to mess with this. And run-time hasn't changed as far as backward compatibility goes, so unless you have compiled libraries without source that use old runtime, just rebuild everything. If you can't, stay with 2008. It really isn't worth wasting time over this.   ;  here i think this will help 