Click here to Skip to main content
14,548,733 members

C / C++ / MFC

 
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
Membercristianpff9-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
Membercristianpff12-Oct-15 3:01 
QuestionSet whole Data to a struct with BitFields Pin
FrankStar896-Oct-15 4:10
MemberFrankStar896-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
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
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.
AnswerRe: Set whole Data to a struct with BitFields Pin
Albert Holguin6-Oct-15 4:50
professionalAlbert Holguin6-Oct-15 4:50 
AnswerRe: Set whole Data to a struct with BitFields PinPopular
Richard MacCutchan6-Oct-15 4:54
mveRichard MacCutchan6-Oct-15 4:54 
Questionhow to parse html code in c language Pin
Member 118352695-Oct-15 21:04
MemberMember 118352695-Oct-15 21:04 
AnswerRe: how to parse html code in c language Pin
Richard MacCutchan5-Oct-15 22:00
mveRichard MacCutchan5-Oct-15 22:00 
QuestionC: Book recommendations Pin
Member 114893145-Oct-15 6:58
MemberMember 114893145-Oct-15 6:58 
AnswerRe: C: Book recommendations Pin
Richard MacCutchan5-Oct-15 7:06
mveRichard MacCutchan5-Oct-15 7:06 
AnswerRe: C: Book recommendations Pin
Richard Andrew x645-Oct-15 12:09
professionalRichard Andrew x645-Oct-15 12:09 
GeneralRe: C: Book recommendations Pin
Albert Holguin6-Oct-15 4:59
professionalAlbert Holguin6-Oct-15 4:59 
QuestionWindows message for changing color scheme Pin
_Flaviu5-Oct-15 2:15
Member_Flaviu5-Oct-15 2:15 
AnswerRe: Windows message for changing color scheme Pin
_Flaviu5-Oct-15 3:07
Member_Flaviu5-Oct-15 3:07 
QuestionRe: Windows message for changing color scheme Pin
Richard MacCutchan5-Oct-15 3:47
mveRichard MacCutchan5-Oct-15 3:47 
AnswerRe: Windows message for changing color scheme Pin
_Flaviu5-Oct-15 20:18
Member_Flaviu5-Oct-15 20:18 
AnswerRe: Windows message for changing color scheme Pin
_Flaviu7-Oct-15 0:46
Member_Flaviu7-Oct-15 0:46 
Questionuploadig adobe reader file in local host in c language Pin
sunycity4-Oct-15 22:31
Membersunycity4-Oct-15 22:31 
AnswerRe: uploadig adobe reader file in local host in c language Pin
Jochen Arndt4-Oct-15 22:54
professionalJochen Arndt4-Oct-15 22:54 
QuestionCFileDialog OnTypeChange issue Pin
_Flaviu1-Oct-15 20:59
Member_Flaviu1-Oct-15 20:59 
QuestionRe: CFileDialog OnTypeChange issue Pin
_Flaviu2-Oct-15 3:00
Member_Flaviu2-Oct-15 3:00 

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.