Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: i have problem with CString please help me Pin
ThatsAlok5-Nov-07 0:55
ThatsAlok5-Nov-07 0:55 
AnswerRe: i have problem with CString please help me Pin
Mark Salsbery5-Nov-07 5:40
Mark Salsbery5-Nov-07 5:40 
GeneralRe: i have problem with CString please help me Pin
rajneshmalik5-Nov-07 20:35
rajneshmalik5-Nov-07 20:35 
GeneralRe: i have problem with CString please help me Pin
Mark Salsbery6-Nov-07 4:39
Mark Salsbery6-Nov-07 4:39 
Questionwhat does CListCtrl::GetItemData() & 1 mean? Pin
fantasy12154-Nov-07 18:41
fantasy12154-Nov-07 18:41 
AnswerRe: what does CListCtrl::GetItemData() & 1 mean? Pin
Neo Andreson4-Nov-07 19:34
Neo Andreson4-Nov-07 19:34 
QuestionRe: what does CListCtrl::GetItemData() & 1 mean? Pin
fantasy12154-Nov-07 19:46
fantasy12154-Nov-07 19:46 
AnswerRe: what does CListCtrl::GetItemData() & 1 mean? Pin
Nishad S4-Nov-07 21:15
Nishad S4-Nov-07 21:15 
The '&' is a bitwise operator. It can be used for checking whether a specific bit is set or reset. For example, 10 & 1 means 1010 & 0001 in binary, the result will be zero since the first bit is zero. 0101 & 0001 will result in 1 because the the first bit is 1.

Similarly the data obtained from list control through GetItemData is being checked for first bit set or reset. All other bits are avoided. The if block will be executed only if the first bit of the obtained data is 1.

Hope you are clear about it now.

- NS -

QuestionRe: what does CListCtrl::GetItemData() & 1 mean? Pin
fantasy12156-Nov-07 21:08
fantasy12156-Nov-07 21:08 
AnswerRe: what does CListCtrl::GetItemData() & 1 mean? Pin
Nishad S6-Nov-07 21:12
Nishad S6-Nov-07 21:12 
GeneralRe: what does CListCtrl::GetItemData() & 1 mean? Pin
fantasy12158-Nov-07 18:27
fantasy12158-Nov-07 18:27 
GeneralRe: what does CListCtrl::GetItemData() & 1 mean? Pin
Nishad S11-Nov-07 16:50
Nishad S11-Nov-07 16:50 
QuestionDynamic buffer allocation Pin
CodingLover4-Nov-07 18:40
CodingLover4-Nov-07 18:40 
AnswerRe: Dynamic buffer allocation Pin
Neo Andreson4-Nov-07 19:30
Neo Andreson4-Nov-07 19:30 
AnswerRe: Dynamic buffer allocation Pin
Paresh Chitte4-Nov-07 19:52
Paresh Chitte4-Nov-07 19:52 
GeneralRe: Dynamic buffer allocation Pin
CodingLover4-Nov-07 19:59
CodingLover4-Nov-07 19:59 
GeneralRe: Dynamic buffer allocation Pin
Paresh Chitte4-Nov-07 20:03
Paresh Chitte4-Nov-07 20:03 
GeneralRe: Dynamic buffer allocation Pin
CodingLover4-Nov-07 20:34
CodingLover4-Nov-07 20:34 
GeneralRe: Dynamic buffer allocation Pin
Paresh Chitte4-Nov-07 20:42
Paresh Chitte4-Nov-07 20:42 
GeneralRe: Dynamic buffer allocation Pin
chandu0044-Nov-07 21:10
chandu0044-Nov-07 21:10 
GeneralRe: Dynamic buffer allocation Pin
CodingLover4-Nov-07 21:34
CodingLover4-Nov-07 21:34 
AnswerRe: Dynamic buffer allocation Pin
Nelek4-Nov-07 22:07
protectorNelek4-Nov-07 22:07 
GeneralRe: Dynamic buffer allocation Pin
CodingLover4-Nov-07 22:12
CodingLover4-Nov-07 22:12 
GeneralRe: Dynamic buffer allocation Pin
vijay_aroli4-Nov-07 23:15
vijay_aroli4-Nov-07 23:15 
GeneralRe: Dynamic buffer allocation Pin
CodingLover4-Nov-07 23:31
CodingLover4-Nov-07 23:31 

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.