Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: variables Pin
CPallini30-Oct-09 9:02
mveCPallini30-Oct-09 9:02 
GeneralRe: variables Pin
josda100030-Oct-09 4:23
josda100030-Oct-09 4:23 
GeneralRe: variables Pin
Maximilien30-Oct-09 4:41
Maximilien30-Oct-09 4:41 
GeneralRe: variables Pin
josda100030-Oct-09 4:47
josda100030-Oct-09 4:47 
GeneralRe: variables Pin
CPallini30-Oct-09 11:31
mveCPallini30-Oct-09 11:31 
AnswerRe: variables Pin
Cedric Moonen30-Oct-09 4:23
Cedric Moonen30-Oct-09 4:23 
GeneralRe: variables Pin
khomeyni31-Oct-09 3:30
khomeyni31-Oct-09 3:30 
QuestionWhat is the difference between macro and simple code Pin
deadlyabbas30-Oct-09 2:31
deadlyabbas30-Oct-09 2:31 
What is the difference between the following:

1. #Ifdef #else #endif and If else

Example:
#Ifdef 1
cout<<"Hello World"<<endl;
#else
cout<<"Have A Nice Day"<<endl;
#endif

and the code written as

if(1)
cout<<"Hello World"<<endl;
else
cout<<"Have A Nice Day"<<endl;

2.If we remove a macro from the code what impact we will have on the in respect to size of the code and the execution time and the size of exe.
Say we have a macro "RCAD"
The code looks like as
#if defined RCAD
// do some thing
#else
//do some thing
#endif

Now in our code the macro RCAD is always true so we remove the macro now
It will left only with
//do some thing

So what is the impact on our code and the size of it we doing the same thing.
AnswerRe: What is the difference between macro and simple code Pin
enhzflep30-Oct-09 2:52
enhzflep30-Oct-09 2:52 
GeneralRe: What is the difference between macro and simple code Pin
deadlyabbas30-Oct-09 3:13
deadlyabbas30-Oct-09 3:13 
AnswerRe: What is the difference between macro and simple code Pin
David Crow30-Oct-09 3:27
David Crow30-Oct-09 3:27 
GeneralRe: What is the difference between macro and simple code Pin
Maximilien30-Oct-09 3:33
Maximilien30-Oct-09 3:33 
AnswerRe: What is the difference between macro and simple code Pin
Randor 30-Oct-09 2:59
professional Randor 30-Oct-09 2:59 
AnswerRe: What is the difference between macro and simple code Pin
CPallini30-Oct-09 2:59
mveCPallini30-Oct-09 2:59 
QuestionRead byte array from image Pin
Game-point30-Oct-09 2:26
Game-point30-Oct-09 2:26 
QuestionRe: Read byte array from image Pin
Randor 30-Oct-09 2:40
professional Randor 30-Oct-09 2:40 
QuestionGDI+ Pin
__erfan__30-Oct-09 0:05
__erfan__30-Oct-09 0:05 
AnswerRe: GDI+ Pin
CPallini30-Oct-09 0:18
mveCPallini30-Oct-09 0:18 
GeneralRe: GDI+ Pin
Naveen30-Oct-09 0:19
Naveen30-Oct-09 0:19 
GeneralRe: GDI+ Pin
Randor 30-Oct-09 0:22
professional Randor 30-Oct-09 0:22 
GeneralRe: GDI+ Pin
Naveen30-Oct-09 0:29
Naveen30-Oct-09 0:29 
JokeRe: GDI+ Pin
CPallini30-Oct-09 0:37
mveCPallini30-Oct-09 0:37 
GeneralRe: GDI+ Pin
__erfan__30-Oct-09 0:30
__erfan__30-Oct-09 0:30 
AnswerRe: GDI+ Pin
Naveen30-Oct-09 0:18
Naveen30-Oct-09 0:18 
AnswerRe: GDI+ Pin
Randor 30-Oct-09 0:19
professional Randor 30-Oct-09 0:19 

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.