Solved

Preprocessor directive in  borland builder

Posted on 2011-03-09
3
806 Views
Last Modified: 2012-05-11
I am trying to build a visual studio project using borland builder. The preprocessor  directive _MSC_VER used commonly with Visual Studio, does it work with Borland? If not why? Probably I am missing out on basics, so feel free to assume little knowledge in this area.
0
Comment
Question by:Mydeen Yussouf
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 125 total points
ID: 35084791
_MSC_VER is a preprocessor macro that part of the Microsoft C++ implementation. It is not part of the C++ standard so may or may not be available with your compiler.

http://msdn.microsoft.com/en-us/library/b0084kay.aspx
0
 
LVL 53

Assisted Solution

by:Infinity08
Infinity08 earned 125 total points
ID: 35084871
Since _MSC_VER is a macro that specifically gives the Visual C++ compiler version, it would be weird (and confusing) if a Borland compiler would support it (it's not a Visual C++ compiler after all).
The Borland C++ compiler uses the __BORLANDC__ macro for its version number.


That said, it has been known for some compilers (other than Visual C++) to support the _MSC_VER macro for one reason or another, but as fas as I know that support has been removed because it caused confusion.
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 35084913
Oops :) Forgot to refresh. Sorry.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Embarcadero C++ Builder XE2 TDateTime 8 80
C++ question 3 74
Finding Divisors 5 35
why doesn't assert terminate here? 2 8
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question