Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
VW_Red_Jetta wrote:
I second this question: Do the real world programmers use structs and classes together?

Yes, look an any real API and you'll find some structs. Generally I try to avoid them, unless you're sending a very strong message about the complexity of the object.

DirectX for example.
In DirectX struct is used to signify that objects (especially the vertices of polygons) can be memcpy()'d directly. This is used almost to speed up the process of adding to the vertex buffer.

Not that I'd generally cite DirectX as a API for demonstrating good programming practices, but it's appropriate in this situation. Big Grin | :-D
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 
GeneralSplit String Question.... Pin
Nitron22-May-03 13:49
Nitron22-May-03 13:49 
GeneralRe: Split String Question.... Pin
Joaquín M López Muñoz22-May-03 20:05
Joaquín M López Muñoz22-May-03 20:05 
GeneralRe: Split String Question.... Pin
Nitron23-May-03 2:16
Nitron23-May-03 2:16 
Question"const int" or "int const" ? Pin
Gavin Greig22-May-03 12:57
Gavin Greig22-May-03 12:57 
AnswerRe: "const int" or "int const" ? Pin
Michael Dunn22-May-03 18:57
sitebuilderMichael Dunn22-May-03 18:57 
GeneralRe: "const int" or "int const" ? Pin
Gavin Greig22-May-03 22:58
Gavin Greig22-May-03 22:58 
Generalvswprintf Pin
Matt Newman22-May-03 12:57
Matt Newman22-May-03 12:57 
GeneralRe: vswprintf Pin
cmk22-May-03 14:45
cmk22-May-03 14:45 

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.