Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPrinting Pin
Petr_P22-May-03 20:29
Petr_P22-May-03 20:29 
GeneralRe: Printing Pin
Anonymous6-Feb-04 0:07
Anonymous6-Feb-04 0:07 
GeneralCStringArray in C++ Pin
Mazdak22-May-03 19:25
Mazdak22-May-03 19:25 
GeneralRe: CStringArray in C++ Pin
Joaquín M López Muñoz22-May-03 19:39
Joaquín M López Muñoz22-May-03 19:39 
GeneralRe: CStringArray in C++ Pin
Mazdak22-May-03 21:24
Mazdak22-May-03 21:24 
QuestionHow to Install a Windows XP theme in MFC program Pin
jia_wei22-May-03 18:37
jia_wei22-May-03 18:37 
QuestionHow do I set the “Comment” attribute of a file or folder using VB script ? Pin
Serge Krynine22-May-03 18:01
Serge Krynine22-May-03 18:01 
QuestionWhat does macro guard do in header file. Pin
Link260022-May-03 17:33
Link260022-May-03 17:33 
I also do not understand what does macro guard do in header
file. What do we need to include #ifndef, # define and #endif.
And why do they capitialize the COUNTER_H, is COUNTER_H the
file name? It seems to be. Why is it called macro guard?


----------------------------
// File: Counter.h
// Counter class definition

#ifndef COUNTER_H // used to avoid multiple definitions
#define COUNTER_H // not part of the class

class counter
{
public:
// Member Functions
// Constructors

private:
// Data members (attributes)

};

#endif // COUNTER_H

AnswerRe: What does macro guard do in header file. Pin
Andrew Walker22-May-03 18:05
Andrew Walker22-May-03 18:05 
GeneralRe: What does macro guard do in header file. Pin
Serge Krynine22-May-03 18:28
Serge Krynine22-May-03 18:28 
AnswerRe: What does macro guard do in header file. Pin
Michael Dunn22-May-03 18:42
sitebuilderMichael Dunn22-May-03 18:42 
GeneralRe: What does macro guard do in header file. Pin
Serge Krynine22-May-03 19:41
Serge Krynine22-May-03 19:41 
QuestionAny example of why do we use private in Classes? Pin
Link260022-May-03 16:49
Link260022-May-03 16:49 
AnswerRe: Any example of why do we use private in Classes? Pin
Andrew Walker22-May-03 18:14
Andrew Walker22-May-03 18:14 
GeneralRe: Any example of why do we use private in Classes? Pin
Link260022-May-03 18:23
Link260022-May-03 18:23 
GeneralRe: Any example of why do we use private in Classes? Pin
Andrew Walker22-May-03 18:42
Andrew Walker22-May-03 18:42 
GeneralRe: Any example of why do we use private in Classes? Pin
Michael Dunn22-May-03 18:46
sitebuilderMichael Dunn22-May-03 18:46 
QuestionHow to write automated device driver installation in MFC? Pin
Member 40481322-May-03 16:44
Member 40481322-May-03 16:44 
GeneralDefine BIT level Struct Pin
Paul Farry22-May-03 16:36
professionalPaul Farry22-May-03 16:36 
GeneralRe: Define BIT level Struct Pin
Serge Krynine22-May-03 18:14
Serge Krynine22-May-03 18:14 
GeneralRe: Define BIT level Struct Pin
Michael Dunn22-May-03 18:48
sitebuilderMichael Dunn22-May-03 18:48 
GeneralRe: Define BIT level Struct Pin
Serge Krynine22-May-03 19:22
Serge Krynine22-May-03 19:22 
GeneralRe: Define BIT level Struct Pin
basementman23-May-03 4:14
basementman23-May-03 4:14 
QuestionNTFS file tagging? Pin
rcsj122-May-03 15:38
rcsj122-May-03 15:38 
AnswerRe: NTFS file tagging? Pin
Michael Dunn22-May-03 18:52
sitebuilderMichael Dunn22-May-03 18:52 

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.