Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Relatively simple, & is a binary AND, while ~ is a binary NOT.

For instance, if "remaining" contains 127 (0x7F, or 01111111 binary),
and pAccess->dwValue contains 6 (0x6, 0110 binary), the ~ flips the bits
in pAccess->dwValue, so it contains 0xFFFFFF9, and then it's ANDed with
the "remaining" value

0111 1111 (remaining)
1111 1001 (dwValue)
---------
0111 1001

which is then stored in remaining.

It's a common technique used to turn off bits in one value that are set in another.

Steve S
[This signature space available for rent]
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 
GeneralRe: Dialog in a DLL Pin
DarrollWalsh25-Sep-02 20:10
DarrollWalsh25-Sep-02 20:10 
GeneralFile properties Pin
Bugra Barin25-Sep-02 18:10
Bugra Barin25-Sep-02 18:10 

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.