Click here to Skip to main content
15,879,326 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
AnswerRe: General Ifndef and Define Question Pin
KarstenK13-Sep-09 22:51
mveKarstenK13-Sep-09 22:51 
AnswerRe: General Ifndef and Define Question Pin
Richard MacCutchan13-Sep-09 23:34
mveRichard MacCutchan13-Sep-09 23:34 
GeneralRe: General Ifndef and Define Question Pin
lgm42014-Sep-09 9:25
lgm42014-Sep-09 9:25 
GeneralRe: General Ifndef and Define Question Pin
Richard MacCutchan14-Sep-09 11:22
mveRichard MacCutchan14-Sep-09 11:22 
QuestionHook communication Pin
paperboy212-Sep-09 23:11
paperboy212-Sep-09 23:11 
AnswerRe: Hook communication Pin
«_Superman_»13-Sep-09 18:19
professional«_Superman_»13-Sep-09 18:19 
AnswerRe: Hook communication Pin
Naveen13-Sep-09 18:35
Naveen13-Sep-09 18:35 
GeneralRe: Hook communication Pin
paperboy214-Sep-09 2:36
paperboy214-Sep-09 2:36 
Questionhow to sending input in rich edit to a device?? Pin
mr bard212-Sep-09 17:55
mr bard212-Sep-09 17:55 
AnswerRe: how to sending input in rich edit to a device?? Pin
Code-o-mat12-Sep-09 22:11
Code-o-mat12-Sep-09 22:11 
AnswerRe: how to sending input in rich edit to a device?? Pin
Richard MacCutchan12-Sep-09 22:18
mveRichard MacCutchan12-Sep-09 22:18 
Questionerror C2664:'load':cannot convert parameter 1 from 'unsigned short *' to 'struct tagVARIANT' Pin
CHYGO12-Sep-09 16:50
CHYGO12-Sep-09 16:50 

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.