Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to connect a database(MS Access)to the MFC application. Pin
CodingLover18-Oct-07 18:10
CodingLover18-Oct-07 18:10 
AnswerRe: How to connect a database(MS Access)to the MFC application. Pin
David Crow18-Oct-07 2:33
David Crow18-Oct-07 2:33 
GeneralRe: How to connect a database(MS Access)to the MFC application. Pin
CodingLover18-Oct-07 19:37
CodingLover18-Oct-07 19:37 
QuestionBitwise operations (Masking) Pin
cydd17-Oct-07 0:26
cydd17-Oct-07 0:26 
AnswerRe: Bitwise operations (Masking) Pin
chandu00417-Oct-07 0:42
chandu00417-Oct-07 0:42 
GeneralRe: Bitwise operations (Masking) Pin
cydd17-Oct-07 0:54
cydd17-Oct-07 0:54 
GeneralRe: Bitwise operations (Masking) Pin
chandu00417-Oct-07 1:00
chandu00417-Oct-07 1:00 
GeneralRe: Bitwise operations (Masking) Pin
chandu00417-Oct-07 1:09
chandu00417-Oct-07 1:09 
and here is what you require.
UINT64 value,value1,value2,maskval;
maskval=0xfffffffffffffff;//assigning the 8 byte integer to all 1s.
maskval=maskval<<x;<i>//x is the number of bits you want to mask.
maskval=~maskval;//toggling the bits from 0 to 1 and vice versa.
value1=value&maskval;
value2=value>>x;

----------------------------------------
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.

GeneralRe: Bitwise operations (Masking) Pin
cydd17-Oct-07 1:46
cydd17-Oct-07 1:46 
GeneralRe: Bitwise operations (Masking) Pin
Nelek17-Oct-07 1:57
protectorNelek17-Oct-07 1:57 
GeneralRe: Bitwise operations (Masking) Pin
cydd17-Oct-07 2:05
cydd17-Oct-07 2:05 
GeneralRe: Bitwise operations (Masking) Pin
chandu00417-Oct-07 1:58
chandu00417-Oct-07 1:58 
GeneralRe: Bitwise operations (Masking) Pin
cydd17-Oct-07 2:03
cydd17-Oct-07 2:03 
GeneralRe: Bitwise operations (Masking) Pin
chandu00417-Oct-07 2:08
chandu00417-Oct-07 2:08 
QuestionSocket Send-Receive Synchronization Pin
Syamlal S Nair16-Oct-07 23:58
Syamlal S Nair16-Oct-07 23:58 
AnswerRe: Socket Send-Receive Synchronization Pin
Cedric Moonen17-Oct-07 0:07
Cedric Moonen17-Oct-07 0:07 
AnswerRe: Socket Send-Receive Synchronization Pin
ThatsAlok17-Oct-07 1:40
ThatsAlok17-Oct-07 1:40 
AnswerRe: Socket Send-Receive Synchronization Pin
David Crow17-Oct-07 3:43
David Crow17-Oct-07 3:43 
AnswerRe: Socket Send-Receive Synchronization Pin
led mike17-Oct-07 4:26
led mike17-Oct-07 4:26 
QuestionPrint Preview Pin
AnayKulkarni16-Oct-07 23:53
AnayKulkarni16-Oct-07 23:53 
AnswerRe: Print Preview Pin
Nelek17-Oct-07 0:13
protectorNelek17-Oct-07 0:13 
GeneralRe: Print Preview Pin
David Crow17-Oct-07 3:40
David Crow17-Oct-07 3:40 
JokeRe: Print Preview Pin
Nelek17-Oct-07 5:30
protectorNelek17-Oct-07 5:30 
GeneralRe: Print Preview Pin
ThatsAlok17-Oct-07 20:29
ThatsAlok17-Oct-07 20:29 
QuestionRe: Print Preview Pin
David Crow17-Oct-07 3:42
David Crow17-Oct-07 3:42 

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.