Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 IDE with Visual C++ 6.0 compiler?

How can I do that ? Can I work in VS2010 IDE but have it compile with the VS C++ 6.0 compiler? And can I work in VS2010 IDE and have it compile by using the the VS2008 compiler ?

like image 641
Daniel Stanca Avatar asked Jul 13 '10 13:07

Daniel Stanca


People also ask

Does Visual Studio have C compiler?

The Visual Studio build tools include a C compiler that you can use to create everything from basic console programs to full Windows Desktop applications, mobile apps, and more.

Can I still use Visual Studio 2010?

The current channel of Visual Studio 2022, for instance, will get mainstream support until January 2027. Overall support will end in January 2032, nearly 10 years from now. Visual Studio 2019 version 16.11 gets mainstream support until April 2024. Visual Studio 2010 and earlier versions are no longer supported.

What is the C++ version of Visual Studio 2010?

Visual Studio 2010 gives developers powerful new core language features from the upcoming C++0x standard. The Visual C++ compiler in Visual Studio 2010 has enabled six C++0x core language features: lambda expressions, auto keywords, rvalue references, static_assert, nullptr and decltype.


2 Answers

you need the Daffodil extension

like image 126
mtijn Avatar answered Oct 03 '22 20:10

mtijn


I know it is possible to achieve this with VS2008 IDE and I'm 99% sure it is the same with VS2010 (but I don't have one to try with). Make a batch file in which you first need to call VCVARS32.BAT file that is included with VC++ 6.0 and then start Visual Studio with "/useenv" switch. You will then use this batch file to start Visual Studio.

.bat file:

call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"
start "" "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /useenv

NOTE: This is path to VS2008 IDE, you need to change path for VS10 by yourself (probably just needs changing number 9 to number 10). Also if you are using 64bit OS you will need to change both paths to use "Program Files (x86)".

like image 30
Igor Jerosimić Avatar answered Oct 03 '22 20:10

Igor Jerosimić