Click here to Skip to main content
15,905,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
// Try this:

#include "stdafx.h"

struct Bits
{
unsigned m_1stBit:1;
unsigned m_2ndBit:2;
unsigned m_3rdBit:3;
};



int main(int argc, char* argv[])
{
Bits myBits;
myBits.m_1stBit = 1;
myBits.m_2ndBit = 0;
myBits.m_3rdBit = 1;

printf("size of the myBits is: %d\n", sizeof(myBits));
printf("myBits.m_1stBit = %d\n", myBits.m_1stBit);
printf("myBits.m_2ndBit = %d\n", myBits.m_2ndBit);
printf("myBits.m_3rdBit = %d\n", myBits.m_3rdBit);
return 0;
}


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 
GeneralRe: vswprintf Pin
Matt Newman22-May-03 16:54
Matt Newman22-May-03 16:54 
GeneralRe: vswprintf Pin
cmk23-May-03 8:18
cmk23-May-03 8:18 
QuestionGetting WebBrowser app to use Sun's VM? Pin
gmontem22-May-03 12:20
gmontem22-May-03 12:20 
GeneralRich Edit control programming in C Pin
SAK22-May-03 11:32
SAK22-May-03 11:32 

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.