Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #if Pin
Smith#22-Dec-05 23:40
Smith#22-Dec-05 23:40 
GeneralRe: #if [edited] Pin
toxcct22-Dec-05 23:41
toxcct22-Dec-05 23:41 
GeneralRe: #if [edited] Pin
Eytukan23-Dec-05 0:37
Eytukan23-Dec-05 0:37 
AnswerRe: #if Pin
khan++22-Dec-05 23:35
khan++22-Dec-05 23:35 
GeneralRe: #if Pin
Smith#22-Dec-05 23:39
Smith#22-Dec-05 23:39 
GeneralRe: #if Pin
toxcct22-Dec-05 23:43
toxcct22-Dec-05 23:43 
GeneralRe: #if Pin
Smith#22-Dec-05 23:50
Smith#22-Dec-05 23:50 
GeneralRe: #if Pin
toxcct22-Dec-05 23:58
toxcct22-Dec-05 23:58 
i think either you don't undertand or you don't know what is the preprocessor.
the preprocessor creates a version of the file that is passed then to the compiler. but the compiler don't see exactly the file as you wrote it !!

lets take an example. if you have this :

#if defined(MY_MACRO)
#include "file1.h"
#else
#include "file2.h"
#endif


now, if you have MY_MACRO defined, the compiler will see :
#include "file1.h"

if not, it will see :
#include "file2.h"

but never the compiler sees the preprocessor directives.



TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VisualCalc 3.0]
GeneralRe: #if Pin
toxcct22-Dec-05 23:40
toxcct22-Dec-05 23:40 
GeneralRe: #if Pin
khan++22-Dec-05 23:53
khan++22-Dec-05 23:53 
GeneralRe: #if Pin
Smith#23-Dec-05 0:06
Smith#23-Dec-05 0:06 
GeneralRe: #if Pin
toxcct23-Dec-05 0:10
toxcct23-Dec-05 0:10 
GeneralRe: #if Pin
Smith#23-Dec-05 0:33
Smith#23-Dec-05 0:33 
GeneralRe: #if Pin
toxcct23-Dec-05 1:01
toxcct23-Dec-05 1:01 
GeneralRe: #if Pin
Russell'23-Dec-05 0:15
Russell'23-Dec-05 0:15 
GeneralRe: #if Pin
Smith#23-Dec-05 0:35
Smith#23-Dec-05 0:35 
QuestionGetMenu() returns NULL for Visual Studio 2003 Pin
Owner drawn22-Dec-05 22:02
Owner drawn22-Dec-05 22:02 
AnswerSomebody help :( Pin
Owner drawn23-Dec-05 0:21
Owner drawn23-Dec-05 0:21 
GeneralOT Pin
Eytukan23-Dec-05 0:44
Eytukan23-Dec-05 0:44 
AnswerRe: GetMenu() returns NULL for Visual Studio 2003 Pin
PJ Arends23-Dec-05 10:48
professionalPJ Arends23-Dec-05 10:48 
QuestionHandling Win32 Exceptions Pin
mikobi22-Dec-05 21:57
mikobi22-Dec-05 21:57 
AnswerRe: Handling Win32 Exceptions Pin
ThatsAlok22-Dec-05 22:54
ThatsAlok22-Dec-05 22:54 
GeneralRe: Handling Win32 Exceptions Pin
mikobi22-Dec-05 23:00
mikobi22-Dec-05 23:00 
GeneralRe: Handling Win32 Exceptions Pin
toxcct22-Dec-05 23:19
toxcct22-Dec-05 23:19 
GeneralRe: Handling Win32 Exceptions Pin
mikobi22-Dec-05 23:27
mikobi22-Dec-05 23:27 

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.