Click here to Skip to main content
15,914,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalformatting input Pin
An663-Nov-04 11:56
sussAn663-Nov-04 11:56 
GeneralRe: formatting input Pin
Peter Weyzen3-Nov-04 13:34
Peter Weyzen3-Nov-04 13:34 
QuestionOverride lst2 listbox actions in explorer type open file dialog? Pin
Member 14583203-Nov-04 10:40
Member 14583203-Nov-04 10:40 
Generalcustomizing OPENFILENAME - "new" look Pin
peterchen3-Nov-04 10:27
peterchen3-Nov-04 10:27 
GeneralRe: customizing OPENFILENAME - "new" look Pin
Ryan Binns3-Nov-04 18:43
Ryan Binns3-Nov-04 18:43 
GeneralRe: customizing OPENFILENAME - "new" look Pin
David Crow4-Nov-04 3:56
David Crow4-Nov-04 3:56 
GeneralUnion question Pin
Steve Messer3-Nov-04 9:18
Steve Messer3-Nov-04 9:18 
GeneralRe: Union question Pin
David Crow3-Nov-04 9:38
David Crow3-Nov-04 9:38 
smesser wrote:
I am guessing that this is making use of Anonymous Unions.

You are correct.

smesser wrote:
Also I don't understand this notation "unsigned x: 1;", what is this saying?

That the variable only occupies 1 bit.

smesser wrote:
For example if field donoted using x you would access by mystruct.x ??

Correct. In this particular example, accessing member x would also be accesssing one bit of member field. That's the whole premise of a union. All members start at the same address because a union variable can contain only one of its members at a time.

smesser wrote:
Finally, is this C/C++ or just for C++?

Unions are used in both languages. The difference comes in how you declare union variables. With C, you must use the union keyword. In C++, the union keyword is unnecessary.


"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow


GeneralRe: Union question Pin
Steve Messer3-Nov-04 9:45
Steve Messer3-Nov-04 9:45 
GeneralRe: Union question Pin
Henry miller3-Nov-04 10:32
Henry miller3-Nov-04 10:32 
GeneralRe: Union question Pin
Joaquín M López Muñoz3-Nov-04 10:06
Joaquín M López Muñoz3-Nov-04 10:06 
GeneralRe: Union question Pin
Steve Messer3-Nov-04 10:18
Steve Messer3-Nov-04 10:18 
GeneralRe: Union question[modified] Pin
Antony M Kancidrowski4-Nov-04 2:24
Antony M Kancidrowski4-Nov-04 2:24 
GeneralRe: Union question Pin
Steve Messer4-Nov-04 3:42
Steve Messer4-Nov-04 3:42 
Questionis there platform-independent FillMemory function in C/C++!? Pin
clayman873-Nov-04 9:04
clayman873-Nov-04 9:04 
AnswerRe: is there platform-independent FillMemory function in C/C++!? Pin
Joaquín M López Muñoz3-Nov-04 9:15
Joaquín M López Muñoz3-Nov-04 9:15 
AnswerRe: is there platform-independent FillMemory function in C/C++!? Pin
Rick York3-Nov-04 9:15
mveRick York3-Nov-04 9:15 
GeneralRe: is there platform-independent FillMemory function in C/C++!? Pin
clayman873-Nov-04 10:13
clayman873-Nov-04 10:13 
GeneralRe: is there platform-independent FillMemory function in C/C++!? Pin
Joaquín M López Muñoz3-Nov-04 11:02
Joaquín M López Muñoz3-Nov-04 11:02 
GeneralRe: is there platform-independent FillMemory function in C/C++!? Pin
clayman873-Nov-04 10:34
clayman873-Nov-04 10:34 
GeneralRe: is there platform-independent FillMemory function in C/C++!? Pin
Joaquín M López Muñoz3-Nov-04 11:06
Joaquín M López Muñoz3-Nov-04 11:06 
QuestionThe fastest bitmap blitting software? Pin
KellyR3-Nov-04 8:55
KellyR3-Nov-04 8:55 
AnswerRe: The fastest bitmap blitting software? Pin
ThatsAlok3-Nov-04 22:23
ThatsAlok3-Nov-04 22:23 
QuestionTwo files are the same? Pin
peterchen3-Nov-04 8:14
peterchen3-Nov-04 8:14 
AnswerRe: Two files are the same? Pin
Joaquín M López Muñoz3-Nov-04 8:33
Joaquín M López Muñoz3-Nov-04 8:33 

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.