Solved

Preprocessor directive in  borland builder

Posted on 2011-03-09
3
802 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:olmuser
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now