Solved

Preprocessor directive in  borland builder

Posted on 2011-03-09
3
801 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

757 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

22 Experts available now in Live!

Get 1:1 Help Now