Click here to Skip to main content
Click here to Skip to main content

Tagged as

Using Visual Studio 2008 IDE with Visual C++ 2010 compiler

, 26 Aug 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Using Visual Studio 2008 IDE with Visual C++ 2010 compiler
The Visual Studio 2010 IDE in current state not good for C++ developers. It is painfully slow and when it runs it does not allow anything to run with it. Visual Studio 2008 IDE is fast simple and much more responsive.
 
VS 2010 has many intresting features, better Windows 7 support and faster compilation using multi-core CPUs. So I began to think how to use the VS 2008 IDE with VS 2010 compiler and while searching I found the required information but with different compiler:
 
http://resnikb.wordpress.com/2009/10/28/using-visual-studio-2008-with-visual-c-6-0-compiler/
 
Visual Studio IDE has a convenient switch: /useenv. The documentation for the switch states the following:
 
“Starts Visual Studio and uses the environment variables for PATH, INCLUDE, LIBS, and LIBPATH in the VC++ Directories dialog box.”
 
Combined with the vcvars32.bat file that Visual Studio installations traditionally create, this switch gives us the ability to run any Visual Studio IDE with any version of the compiler and support tools.
 
For convience, I have a batch file that first sets up the environment for Visual C++ 6.0 and then starts Visual Studio 2008 with the /useenv switch:
 
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
start "" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /useenv 

 
Use ‘start’ instead of directly running devenv.exe in order to immediately close the window that opens for the batch file. ‘Start’ command will run devenv.exe asynchronously and the process started for the batch file will exit. Notice the empty quotes after start they should be like that only
 
Wrapping It All Up
Depending on your project’s requirements and options, you might need to change some more options.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

srana1
Chief Technology Officer Systweak Software
India India
No Biography provided

Comments and Discussions

 
Questionhkarel Pinmemberhkarel11-Jan-13 22:03 
GeneralI'd like to use the 64 bits compiler enviroment too, but I c... Pinmembermoraisferreira4-Apr-11 4:59 
GeneralReason for my vote of 4 good info. as he pointed out, here i... PinmemberCool_Dev3-Sep-10 3:20 
Reason for my vote of 4
good info. as he pointed out, here is exactly what to do- http://resnikb.wordpress.com/2009/10/28/using-visual-studio-2008-with-visual-c-6-0-compiler/

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141030.1 | Last Updated 27 Aug 2010
Article Copyright 2010 by srana1
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid