Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reg XML reading Pin
Nuri Ismail14-Sep-09 4:19
Nuri Ismail14-Sep-09 4:19 
GeneralRe: Reg XML reading Pin
CPallini14-Sep-09 10:36
mveCPallini14-Sep-09 10:36 
QuestionHow to Resize BMP image in C Pin
LoveneetSingh13-Sep-09 20:52
LoveneetSingh13-Sep-09 20:52 
AnswerRe: How to Resize BMP image in C Pin
CPallini13-Sep-09 21:06
mveCPallini13-Sep-09 21:06 
JokeRe: How to Resize BMP image in C Pin
Nuri Ismail13-Sep-09 21:07
Nuri Ismail13-Sep-09 21:07 
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 
I got board with c++ basic stdlib. I want to write some headers.
I believe I understand Defines are functions and that Ifndef Runs the Defines and Operates them for example. I have some basic questions.
If i use

#ifndef TEXT
#define TEXT
#define BINARY
#define OUTPUT
#define RETURN
#endif


Could TEXT; Ruturn a string? and does it really function that way using the defines? How would i go about using the #ifndef and #defines in the actual c++ int main(){}
for example i see the header iostream.h and cout is available in main(). Can I write anything like cout in there? can someone please guide me in the right direction?

Ive seen something like this...

#ifndef COMPILER
#define NUMERIC
#define COMPILER
#define BIT 8
#define OUTPUT
#endif
using compile;

but im not sure on the using one and where it goes what i need else etc.... thnx for your time.

modified on Monday, September 14, 2009 4:39 PM

AnswerRe: General Ifndef and Define Question Pin
Chris Losinger13-Sep-09 6:40
professionalChris Losinger13-Sep-09 6:40 

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.