Click here to Skip to main content
15,913,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
CDP18022-May-13 19:27
CDP18022-May-13 19:27 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Richard MacCutchan2-May-13 21:26
mveRichard MacCutchan2-May-13 21:26 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
H.Brydon1-May-13 6:34
professionalH.Brydon1-May-13 6:34 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Vaclav_1-May-13 9:04
Vaclav_1-May-13 9:04 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
jschell1-May-13 8:39
jschell1-May-13 8:39 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Vaclav_1-May-13 9:03
Vaclav_1-May-13 9:03 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
jschell2-May-13 8:03
jschell2-May-13 8:03 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Stefan_Lang1-May-13 21:54
Stefan_Lang1-May-13 21:54 
Vaclav_Sal wrote:
lack of understanding of   one of the fundamental language features – in this case C preprocessor

There isn't much to understand:
1. don't use #define if you can help it
2. #include simply inserts the text of the listed file at that position. This has some implications as to what you should and shouldn't put in there, but that is really all there is to know.
3. #pragma commands depend on the compiler

Vaclav_Sal wrote:
I think I got the basics

If you mean by "real application" a program consisting of two or more files, then yes, you need to understand how includes work. IMHO you haven't got the basics until you understand at least that much. Maybe the typical introductory programs (like "hello world") should use a custom include file just to point out the importance of this technique in C/C++ ...

As for the other settings you mentioned, these are mostly irrelevant for understanding the preprocessor functionality. Also they're specific to VS/VC, not the C/C++ language in general. Each compiler and IDE use these differently, so you should learn about these settings by reading them up in the compiler documentation.
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Vaclav_4-May-13 5:34
Vaclav_4-May-13 5:34 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Stefan_Lang5-May-13 23:39
Stefan_Lang5-May-13 23:39 
QuestionOwner Draw MenuItem Displaying large in Size in Debug but in release it is Ok Pin
002comp30-Apr-13 21:14
002comp30-Apr-13 21:14 
AnswerRe: Owner Draw MenuItem Displaying large in Size in Debug but in release it is Ok Pin
Richard MacCutchan30-Apr-13 21:34
mveRichard MacCutchan30-Apr-13 21:34 
GeneralRe: Owner Draw MenuItem Displaying large in Size in Debug but in release it is Ok Pin
002comp1-May-13 0:25
002comp1-May-13 0:25 
SuggestionRe: Owner Draw MenuItem Displaying large in Size in Debug but in release it is Ok Pin
Richard MacCutchan1-May-13 1:49
mveRichard MacCutchan1-May-13 1:49 
QuestionDetect specific finger tip in convexhull Pin
Dilan Shaminda30-Apr-13 19:34
professionalDilan Shaminda30-Apr-13 19:34 
SuggestionRe: Detect specific finger tip in convexhull Pin
Vaclav_1-May-13 5:46
Vaclav_1-May-13 5:46 
GeneralRe: Detect specific finger tip in convexhull Pin
Dilan Shaminda1-May-13 20:16
professionalDilan Shaminda1-May-13 20:16 
GeneralRe: Detect specific finger tip in convexhull Pin
Dilan Shaminda1-May-13 20:16
professionalDilan Shaminda1-May-13 20:16 
QuestionThe "hide_gui" key in the regedit , i want to know how does it works? Pin
ITboy_Lemon30-Apr-13 16:42
professionalITboy_Lemon30-Apr-13 16:42 
AnswerRe: The "hide_gui" key in the regedit , i want to know how does it works? Pin
Richard MacCutchan30-Apr-13 21:31
mveRichard MacCutchan30-Apr-13 21:31 
QuestionAccess structure variable value using string representing variable's name in C++. Pin
shanmugarajaa30-Apr-13 1:43
shanmugarajaa30-Apr-13 1:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Sivaraman Dhamodharan30-Apr-13 2:10
Sivaraman Dhamodharan30-Apr-13 2:10 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Chris Losinger30-Apr-13 4:07
professionalChris Losinger30-Apr-13 4:07 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Newbie0030-Apr-13 7:43
Newbie0030-Apr-13 7:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
jschell30-Apr-13 9:47
jschell30-Apr-13 9:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.