Click here to Skip to main content
15,916,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalnot clear why & is used Pin
ns31-Jul-02 5:59
ns31-Jul-02 5:59 
GeneralRe: not clear why & is used Pin
Jim Crafton31-Jul-02 6:26
Jim Crafton31-Jul-02 6:26 
GeneralRe: not clear why & is used Pin
Chris Losinger31-Jul-02 6:32
professionalChris Losinger31-Jul-02 6:32 
GeneralRe: not clear why & is used Pin
ns31-Jul-02 6:38
ns31-Jul-02 6:38 
GeneralRe: not clear why & is used Pin
Chris Losinger31-Jul-02 6:45
professionalChris Losinger31-Jul-02 6:45 
Generalaah! Thats what I was looking for! Pin
ns31-Jul-02 6:50
ns31-Jul-02 6:50 
GeneralRe: not clear why & is used Pin
Ravi Bhavnani31-Jul-02 6:54
professionalRavi Bhavnani31-Jul-02 6:54 
GeneralRe: not clear why & is used Pin
PJ Arends31-Jul-02 8:08
professionalPJ Arends31-Jul-02 8:08 
In addition to what others have said:

This construct also checks for multiple bits (ie adStateOpen is a combination of bits)
  11001111 - State
& 01000100 - adStateOpen
----------
  01000100 - result == adStateopen

and

  00001111 - State
& 01000100 - adStateOpen
----------
  00000100 - result != adStateOpen but is not false either




CPUA 0x5041

Sonork 100.11743 Chicken Little

"So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies

Within you lies the power for good - Use it!
GeneralShared resources management Pin
Antony B.31-Jul-02 5:40
sussAntony B.31-Jul-02 5:40 
GeneralStill a little lost with GetActiveDocument() Pin
NickOne31-Jul-02 5:22
NickOne31-Jul-02 5:22 
GeneralRe: Still a little lost with GetActiveDocument() Pin
JennyP31-Jul-02 6:23
JennyP31-Jul-02 6:23 
GeneralRe: Still a little lost with GetActiveDocument() Pin
NickOne31-Jul-02 7:03
NickOne31-Jul-02 7:03 
GeneralRe: Still a little lost with GetActiveDocument() Pin
NickOne31-Jul-02 8:06
NickOne31-Jul-02 8:06 
Generalmultipart file download... Pin
behrang7931-Jul-02 5:02
behrang7931-Jul-02 5:02 
GeneralC1010: unexpected end of file while looking for precompiled header directive Pin
Raskolnikov31-Jul-02 4:59
Raskolnikov31-Jul-02 4:59 
GeneralRe: C1010: unexpected end of file while looking for precompiled header directive Pin
RichB31-Jul-02 5:05
RichB31-Jul-02 5:05 
GeneralI hate Microsoft Pin
Raskolnikov31-Jul-02 5:08
Raskolnikov31-Jul-02 5:08 
GeneralRe: I hate Microsoft Pin
Jim Crafton31-Jul-02 6:25
Jim Crafton31-Jul-02 6:25 
GeneralRe: I hate Microsoft Pin
Raskolnikov31-Jul-02 15:58
Raskolnikov31-Jul-02 15:58 
GeneralRe: I hate Microsoft Pin
Christian Graus31-Jul-02 17:02
protectorChristian Graus31-Jul-02 17:02 
GeneralMy bad I though Error lookup tool was for compiler errors.. Pin
Raskolnikov1-Aug-02 11:33
Raskolnikov1-Aug-02 11:33 
GeneralSplash screen Pin
hongheo7631-Jul-02 4:31
hongheo7631-Jul-02 4:31 
GeneralRe: Splash screen Pin
Nish Nishant31-Jul-02 4:43
sitebuilderNish Nishant31-Jul-02 4:43 
GeneralRe: Splash screen Pin
Tomasz Sowinski31-Jul-02 4:48
Tomasz Sowinski31-Jul-02 4:48 
GeneralFtpGetFile Issue Pin
RichB31-Jul-02 4:29
RichB31-Jul-02 4:29 

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.