How to get vc compiler version?

Having trouble finding out your VC++ compiler version number? Let me help you out. 🙂 Open command prompt type and type in [sourcecode language=”cpp”]cl.exe /?[/sourcecode] Relevant part, as shown for me, is pasted here. My current compiler is VC6. Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80×86 Copyright (C) Microsoft Corp 1984-1998. All […]
Continue reading…

 

How to convert iterator to corresponding data pointer?

Well it was quite easy in VC6 to work with iterators since iterators were actual pointers to internal data, so they could be used interchangeably. For e.g. [sourcecode language=”cpp”]typedef std::vector IntVector; IntVector IntVecObj; // Push in a thousand ints for( int Index = 0; Index < 1000; ++Index ) {    IntVecObj.push_back( Index + 1 […]
Continue reading…

 

Build times in Visual Studio 6

Add /Y3 to msdev as command line, but you may say that this is not possible always when I click on visual studio icon. Add a shortcut to msdev and in the “Target” edit box, to the end, add this option as /Y3. Now whenever you startup visual studio using this shortcut you should get build […]
Continue reading…