determine VS compiler version in C++
I hope that someone can help me with this C++ problem.
I work in an environment where our clients use various versions of VS so our code has to vary based on the VS version being used. I'm editing some code that has something like this:
Code:
#ifdef Win32
#if ( _MSC_VER < 1300 )
#define STDCALL __stdcall
#else
#define STDCALL
#endif
#endif
My question is how do i detemine the MSC version? What does the 1300 represent? As a tutorial, I would like to use a form/message box that will display the version number. Any help would be appreciated greatly.
Re: determine VS compiler version in C++
I tried to put this in a click event but I keep getting errors.
Code:
this->label1->Text = _MSC_VER.ToString;
error C2475: 'System::Int32::ToString' : forming a pointer-to-member requires explicit use of the address-of operator ('&') and a qualified name
I know how to do this in VB but am completely new to C#/C++.
Re: determine VS compiler version in C++
C++ and C# are quite different languages. This is a C# forum. This is a C++ forum.