Click here to Skip to main content
13,345,744 members (52,650 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


7 bookmarked
Posted 27 Aug 2010

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

, 27 Aug 2010
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:

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:

<code>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 </code>  

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.


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


About the Author

Chief Technology Officer Systweak Software
India India
This member doesn't quite have enough reputation to be able to display their biography and homepage.

You may also be interested in...


Comments and Discussions

PraiseThanks Pin
rxantos30-Nov-15 23:54
memberrxantos30-Nov-15 23:54 
Questionhkarel Pin
hkarel11-Jan-13 23:03
memberhkarel11-Jan-13 23:03 
GeneralI'd like to use the 64 bits compiler enviroment too, but I c... Pin
moraisferreira4-Apr-11 5:59
membermoraisferreira4-Apr-11 5:59 
GeneralReason for my vote of 4 good info. as he pointed out, here i... Pin
Cool_Dev3-Sep-10 4:20
memberCool_Dev3-Sep-10 4:20 
Reason for my vote of 4
good info. as he pointed out, here is exactly what to do-

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

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

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.180111.1 | Last Updated 27 Aug 2010
Article Copyright 2010 by srana1
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid