Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: Guidelines to code and create a service account to enable/disable wireless ? Pin
David Crow22-Oct-15 10:51
David Crow22-Oct-15 10:51 
GeneralRe: Guidelines to code and create a service account to enable/disable wireless ? Pin
namerg22-Oct-15 11:47
namerg22-Oct-15 11:47 
QuestionPodofo Pdf Library GetGlyphID? Pin
Svetlana Watkins21-Oct-15 5:59
Svetlana Watkins21-Oct-15 5:59 
QuestionI Want to Know about dangling else , Territory operators and Logical operator in switch in c++ Please Give me Articles that Help me ! am learning this first time Pin
Member 1203224018-Oct-15 7:28
Member 1203224018-Oct-15 7:28 
AnswerRe: I Want to Know about dangling else , Territory operators and Logical operator in switch in c++ Please Give me Articles that Help me ! am learning this first time Pin
Richard MacCutchan18-Oct-15 7:31
mveRichard MacCutchan18-Oct-15 7:31 
AnswerRe: I Want to Know about dangling else , Territory operators and Logical operator in switch in c++ Please Give me Articles that Help me ! am learning this first time Pin
Richard MacCutchan18-Oct-15 7:32
mveRichard MacCutchan18-Oct-15 7:32 
QuestionDelete the least number of integers from a given set of integers so that the product of the remaining integers in the set is a perfect square. Pin
Member 1206640717-Oct-15 8:01
Member 1206640717-Oct-15 8:01 
AnswerRe: Delete the least number of integers from a given set of integers so that the product of the remaining integers in the set is a perfect square. Pin
Richard MacCutchan17-Oct-15 21:06
mveRichard MacCutchan17-Oct-15 21:06 
QuestionRe: Delete the least number of integers from a given set of integers so that the product of the remaining integers in the set is a perfect square. Pin
CPallini18-Oct-15 21:38
mveCPallini18-Oct-15 21:38 
QuestionRe: Delete the least number of integers from a given set of integers so that the product of the remaining integers in the set is a perfect square. Pin
Paul Conrad25-Oct-15 5:13
professionalPaul Conrad25-Oct-15 5:13 
QuestionPorting from MFC to QT Pin
HoanNguyen.UiT15-Oct-15 2:10
HoanNguyen.UiT15-Oct-15 2:10 
AnswerRe: Porting from MFC to QT Pin
CPallini15-Oct-15 2:14
mveCPallini15-Oct-15 2:14 
AnswerRe: Porting from MFC to QT Pin
Jochen Arndt15-Oct-15 2:30
professionalJochen Arndt15-Oct-15 2:30 
AnswerRe: Porting from MFC to QT Pin
Albert Holguin19-Oct-15 8:26
professionalAlbert Holguin19-Oct-15 8:26 
Questionget the a 2days time dif fromcurrent time. Pin
ramina sen11-Oct-15 20:21
ramina sen11-Oct-15 20:21 
AnswerRe: get the a 2days time dif fromcurrent time. Pin
Daniel Pfeffer11-Oct-15 21:07
professionalDaniel Pfeffer11-Oct-15 21:07 
AnswerRe: get the a 2days time dif fromcurrent time. Pin
Jochen Arndt11-Oct-15 21:23
professionalJochen Arndt11-Oct-15 21:23 
GeneralRe: get the a 2days time dif fromcurrent time. Pin
Peter_in_278011-Oct-15 21:31
professionalPeter_in_278011-Oct-15 21:31 
GeneralRe: get the a 2days time dif fromcurrent time. Pin
Jochen Arndt11-Oct-15 21:33
professionalJochen Arndt11-Oct-15 21:33 
AnswerRe: get the a 2days time dif fromcurrent time. Pin
CPallini11-Oct-15 21:35
mveCPallini11-Oct-15 21:35 
GeneralRe: get the a 2days time dif fromcurrent time. Pin
Daniel Pfeffer12-Oct-15 3:51
professionalDaniel Pfeffer12-Oct-15 3:51 
Questionhow to implement alpha-beta pruning (tic tac toe) Pin
cristianpff9-Oct-15 23:36
cristianpff9-Oct-15 23:36 
AnswerRe: how to implement alpha-beta pruning (tic tac toe) Pin
CPallini11-Oct-15 4:42
mveCPallini11-Oct-15 4:42 
GeneralRe: how to implement alpha-beta pruning (tic tac toe) Pin
cristianpff12-Oct-15 3:01
cristianpff12-Oct-15 3:01 
QuestionSet whole Data to a struct with BitFields Pin
FrankStar896-Oct-15 4:10
FrankStar896-Oct-15 4:10 
Hi all,
I need to define a structure (its some spec frame-structure), so that I can assign data and retrieve-fields easily.
So my definition is like below
C++
struct MyDef
{
   DWORD B1 : 8;
   DWORD B2 : 8;
   DWORD B3 : 8;
   DWORD B4 : 8;
};

(Note that, the whole struct contains 32 bits.)
Now, I need a way to set some DWORD value to it directly. something like this
C++
MyDef Def;
Def.data = 0xAABBCCDD;//This is the requirement. The 'data' needs to be defined in MyDef in such a way that this gets splits to the fields already defined  

(please note that, I need to keep the bit-fields so that I can set the fields as well.)

Please help me.

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.