Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionChild dialog dependant on SP2 :( Pin
aquawicket27-Sep-07 9:52
aquawicket27-Sep-07 9:52 
AnswerRe: Child dialog dependant on SP2 :( Pin
led mike27-Sep-07 10:11
led mike27-Sep-07 10:11 
AnswerRe: Child dialog dependant on SP2 :( Pin
Mark Salsbery27-Sep-07 10:22
Mark Salsbery27-Sep-07 10:22 
GeneralRe: Child dialog dependant on SP2 :( [modified] Pin
aquawicket27-Sep-07 11:02
aquawicket27-Sep-07 11:02 
GeneralRe: Child dialog dependant on SP2 :( Pin
Mark Salsbery27-Sep-07 11:20
Mark Salsbery27-Sep-07 11:20 
GeneralRe: Child dialog dependant on SP2 :( Pin
aquawicket27-Sep-07 11:46
aquawicket27-Sep-07 11:46 
GeneralRe: Child dialog dependant on SP2 :( Pin
Iain Clarke, Warrior Programmer28-Sep-07 5:27
Iain Clarke, Warrior Programmer28-Sep-07 5:27 
QuestionSmaller than a byte Pin
Waldermort27-Sep-07 9:20
Waldermort27-Sep-07 9:20 
I have aa array of struct in my app, each struct is the size of a byte. My problem is that this array is very large, up to 256mb if the machine can cope with it.

I know each struct is small, but I can half that size. I need 1 bit for a flag and 3 bits for a state. How can I declare the stuct to effectivly have two struct members each of which is 4 bits in size?

struct block
{
    BYTE Flag : 1;
    BYTE State : 3;
};


This is what I currently have, but it's size is still 1 byte even though only 4 bits are being used.

Waldermort

QuestionRe: Smaller than a byte Pin
David Crow27-Sep-07 9:35
David Crow27-Sep-07 9:35 
AnswerRe: Smaller than a byte Pin
Waldermort27-Sep-07 9:36
Waldermort27-Sep-07 9:36 
GeneralRe: Smaller than a byte Pin
Waldermort27-Sep-07 10:06
Waldermort27-Sep-07 10:06 
QuestionRe: Smaller than a byte Pin
Mark Salsbery27-Sep-07 10:13
Mark Salsbery27-Sep-07 10:13 
AnswerRe: Smaller than a byte Pin
Waldermort27-Sep-07 10:15
Waldermort27-Sep-07 10:15 
GeneralRe: Smaller than a byte Pin
Mark Salsbery27-Sep-07 10:29
Mark Salsbery27-Sep-07 10:29 
GeneralRe: Smaller than a byte Pin
thestrat27-Sep-07 21:16
thestrat27-Sep-07 21:16 
AnswerRe: Smaller than a byte Pin
led mike27-Sep-07 10:06
led mike27-Sep-07 10:06 
AnswerRe: Smaller than a byte Pin
Chris Losinger27-Sep-07 10:48
professionalChris Losinger27-Sep-07 10:48 
GeneralRe: Smaller than a byte Pin
Waldermort27-Sep-07 10:59
Waldermort27-Sep-07 10:59 
AnswerRe: Smaller than a byte Pin
Sameerkumar Namdeo27-Sep-07 17:42
Sameerkumar Namdeo27-Sep-07 17:42 
QuestionRe: Smaller than a byte Pin
zakkas248327-Sep-07 23:49
zakkas248327-Sep-07 23:49 
AnswerRe: Smaller than a byte Pin
Iain Clarke, Warrior Programmer28-Sep-07 5:31
Iain Clarke, Warrior Programmer28-Sep-07 5:31 
QuestionNeed a best possible alternative?? Pin
Kiran Satish27-Sep-07 7:08
Kiran Satish27-Sep-07 7:08 
AnswerRe: Need a best possible alternative?? Pin
Mark Salsbery27-Sep-07 7:31
Mark Salsbery27-Sep-07 7:31 
GeneralRe: Need a best possible alternative?? Pin
Kiran Satish1-Oct-07 10:41
Kiran Satish1-Oct-07 10:41 
QuestionRe: Need a best possible alternative?? Pin
Mark Salsbery1-Oct-07 11:15
Mark Salsbery1-Oct-07 11:15 

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.