Click here to Skip to main content
15,886,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create Dialog Pin
Anonymous25-Sep-02 23:34
Anonymous25-Sep-02 23:34 
GeneralRe: Create Dialog Pin
Roman Fadeyev25-Sep-02 23:58
Roman Fadeyev25-Sep-02 23:58 
GeneralRe: Create Dialog Pin
Anonymous26-Sep-02 0:37
Anonymous26-Sep-02 0:37 
GeneralThe difference between VERIFIY() and ASSERT()... Pin
Raphael Kindt25-Sep-02 21:51
Raphael Kindt25-Sep-02 21:51 
GeneralRe: The difference between VERIFIY() and ASSERT()... Pin
Steve S25-Sep-02 21:58
Steve S25-Sep-02 21:58 
GeneralRe: The difference between VERIFIY() and ASSERT()... Pin
yourbuddy7726-Sep-02 1:17
yourbuddy7726-Sep-02 1:17 
QuestionCan somebody explain these lines for me? Pin
Mazdak25-Sep-02 21:29
Mazdak25-Sep-02 21:29 
AnswerRe: Can somebody explain these lines for me? Pin
adamUK25-Sep-02 21:45
adamUK25-Sep-02 21:45 
Mazy,

The & operator is the bitwise 'AND' operator. Your code takes dwValue and performs a bitwise and operation with remaining. Eg if remaining = 0000101011 and dwValue = 0100011001 then the result is 0000001001 (in binary)

If the if statement is nonzero, it executes the remaining code.

x&=y is equivalent to x=x & y (the bitwise operator again)

~ is the bitwise ones complement (or NOT operator) i.e. 010101 becomes 101010 in binary.

So, remaining &=~pAccess->dwValue is equivalent to
remaining=remaining & ~pAccess->dwValue

Hence the bits in dwValue are complemented (ie. all the 1s turn to 0s and the 0s turn to 1s) it is then 'AND'ed with remaining and the result stored in remaining.

Hope this clears things up
Adam.

www.beachwizard.com/travelogue[^]

"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
GeneralRe: Can somebody explain these lines for me? Pin
Mazdak25-Sep-02 22:21
Mazdak25-Sep-02 22:21 
AnswerRe: Can somebody explain these lines for me? Pin
Steve S25-Sep-02 21:46
Steve S25-Sep-02 21:46 
GeneralRe: Can somebody explain these lines for me? Pin
Mazdak25-Sep-02 22:20
Mazdak25-Sep-02 22:20 
Generallistbox question Pin
Mazdak25-Sep-02 20:59
Mazdak25-Sep-02 20:59 
GeneralRe: listbox question Pin
Roman Fadeyev25-Sep-02 23:35
Roman Fadeyev25-Sep-02 23:35 
GeneralRe: listbox question Pin
Mazdak25-Sep-02 23:50
Mazdak25-Sep-02 23:50 
GeneralCString Unicode Problem! Pin
Daniel Strigl25-Sep-02 20:49
Daniel Strigl25-Sep-02 20:49 
GeneralRe: CString Unicode Problem! Pin
567890123425-Sep-02 20:54
567890123425-Sep-02 20:54 
GeneralRe: CString Unicode Problem! Pin
Daniel Strigl25-Sep-02 21:08
Daniel Strigl25-Sep-02 21:08 
GeneralRecent File List help Pin
Chou25-Sep-02 19:18
Chou25-Sep-02 19:18 
GeneralRe: Recent File List help Pin
Steve S25-Sep-02 22:04
Steve S25-Sep-02 22:04 
GeneralRe: Recent File List help Pin
Chou25-Sep-02 22:43
Chou25-Sep-02 22:43 
GeneralRe: Recent File List help Pin
Steve S25-Sep-02 23:00
Steve S25-Sep-02 23:00 
GeneralRe: Recent File List help Pin
Chou25-Sep-02 23:35
Chou25-Sep-02 23:35 
GeneralRe: Recent File List help Pin
Steve S25-Sep-02 23:37
Steve S25-Sep-02 23:37 
GeneralDialog in a DLL Pin
DarrollWalsh25-Sep-02 18:30
DarrollWalsh25-Sep-02 18:30 
GeneralRe: Dialog in a DLL Pin
RedZenBird25-Sep-02 18:59
RedZenBird25-Sep-02 18:59 

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.