Beforehand I know how to define a macro in a file like header file by using #define directive but I want to know, regarding Visual C++ compiler, is there any kind of file which is specifically used to hold a macro so that we can use it anywhere in our code we need by some directive which takes name of that file as input?
Garrett2011 0 Light Poster
Recommended Answers
Jump to PostAre you talking about precompiled header files? Both Microsoft's VC++ 2010 (and earlier versions too) and g++ support that (other compilers might too, I don't know). You have to create a header file that includes other header files as well as function prototypes, constants, classes, structures and externs. Then you …
All 4 Replies
nbaztec 45 Posting Pro in Training
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Garrett2011 0 Light Poster
Garrett2011 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.