Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Resize BMP image in C Pin
CPallini13-Sep-09 21:31
mveCPallini13-Sep-09 21:31 
GeneralRe: How to Resize BMP image in C Pin
LoveneetSingh14-Sep-09 4:20
LoveneetSingh14-Sep-09 4:20 
GeneralRe: How to Resize BMP image in C Pin
CPallini14-Sep-09 7:42
mveCPallini14-Sep-09 7:42 
AnswerRe: How to Resize BMP image in C Pin
Nuri Ismail13-Sep-09 21:06
Nuri Ismail13-Sep-09 21:06 
AnswerRe: How to Resize BMP image in C Pin
kilt14-Sep-09 2:12
kilt14-Sep-09 2:12 
GeneralRe: How to Resize BMP image in C Pin
David Crow14-Sep-09 3:46
David Crow14-Sep-09 3:46 
GeneralRe: How to Resize BMP image in C Pin
LoveneetSingh14-Sep-09 4:25
LoveneetSingh14-Sep-09 4:25 
GeneralRe: How to Resize BMP image in C Pin
Richard MacCutchan14-Sep-09 7:11
mveRichard MacCutchan14-Sep-09 7:11 
GeneralRe: How to Resize BMP image in C Pin
CPallini14-Sep-09 7:43
mveCPallini14-Sep-09 7:43 
QuestionShowing images in the dialog box Pin
Game-point13-Sep-09 20:11
Game-point13-Sep-09 20:11 
AnswerRe: Showing images in the dialog box Pin
Code-o-mat13-Sep-09 20:31
Code-o-mat13-Sep-09 20:31 
QuestionRe: Showing images in the dialog box Pin
CPallini13-Sep-09 20:33
mveCPallini13-Sep-09 20:33 
Questionchange message handler prototype's name Pin
Sujay chakraborty13-Sep-09 19:44
Sujay chakraborty13-Sep-09 19:44 
AnswerRe: change message handler prototype's name Pin
Adam Roderick J13-Sep-09 20:21
Adam Roderick J13-Sep-09 20:21 
GeneralRe: change message handler prototype's name Pin
Naveen13-Sep-09 20:31
Naveen13-Sep-09 20:31 
GeneralRe: change message handler prototype's name Pin
Adam Roderick J13-Sep-09 20:55
Adam Roderick J13-Sep-09 20:55 
Question[Message Deleted] Pin
jadhavjitendrar13-Sep-09 18:05
jadhavjitendrar13-Sep-09 18:05 
AnswerRe: How to Convert Text file to MDB using vc++ Pin
_AnsHUMAN_ 13-Sep-09 18:33
_AnsHUMAN_ 13-Sep-09 18:33 
QuestionGeneral Ifndef and Define Question [modified] Pin
lgm42013-Sep-09 4:14
lgm42013-Sep-09 4:14 
AnswerRe: General Ifndef and Define Question Pin
Chris Losinger13-Sep-09 6:40
professionalChris Losinger13-Sep-09 6:40 
GeneralRe: General Ifndef and Define Question Pin
lgm42013-Sep-09 13:17
lgm42013-Sep-09 13:17 
GeneralRe: General Ifndef and Define Question Pin
Cedric Moonen13-Sep-09 20:31
Cedric Moonen13-Sep-09 20:31 
GeneralRe: General Ifndef and Define Question [modified] Pin
lgm42014-Sep-09 9:04
lgm42014-Sep-09 9:04 
GeneralRe: General Ifndef and Define Question Pin
Richard MacCutchan14-Sep-09 11:21
mveRichard MacCutchan14-Sep-09 11:21 
lgm420 wrote:
but keep in mind this does run...
"STRING"+1234;
runs by the processor and returns int.

No this is merely a group of text characters which do nothing on their own, and when this statement is compiled it produces a compiler warning.


I think you still misunderstand the use of #define. The #define statement does not create runnable code, it merely provides a way of using an alias for a source code expression. This alias is then replaced in the source by the preprocessor before the source module is passed to the compiler. Thus in your example:
#define TEXT "Alphabet"+12345123-"27"
cout << TEXT;

the preprocessor converts these statements to
cout << "Alphabet"+12345123-"27";

this is then passed to the compiler, which converts the statement into executable code. Which, incidentally will not produce the result you think it may.



AnswerRe: General Ifndef and Define Question Pin
KarstenK13-Sep-09 22:51
mveKarstenK13-Sep-09 22:51 

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.