Click here to Skip to main content
15,908,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extremely basic ? about VS 2005. Pin
vikas amin4-Dec-05 20:38
vikas amin4-Dec-05 20:38 
GeneralRe: Extremely basic ? about VS 2005. Pin
Lord Kixdemp5-Dec-05 12:06
Lord Kixdemp5-Dec-05 12:06 
QuestionHow to display a item's image without backgroud color in a CTreeCtrl in MFC? Pin
zhonglin.liang3-Dec-05 13:42
zhonglin.liang3-Dec-05 13:42 
AnswerRe: How to display a item's image without backgroud color in a CTreeCtrl in MFC? Pin
Gavin Taylor3-Dec-05 15:13
professionalGavin Taylor3-Dec-05 15:13 
QuestionWindows Media Services Pin
kotiramkoteswararao3-Dec-05 13:23
kotiramkoteswararao3-Dec-05 13:23 
Questionbitwise operations Pin
alex.barylski3-Dec-05 13:17
alex.barylski3-Dec-05 13:17 
AnswerRe: bitwise operations Pin
David Crow3-Dec-05 15:11
David Crow3-Dec-05 15:11 
GeneralRe: bitwise operations Pin
alex.barylski3-Dec-05 15:44
alex.barylski3-Dec-05 15:44 
Basically whats happening here is I am trying to determine which checkboxes in an FTP program should be checked...

Based on the linux permissions of the file...

So, For example:

777 would require all the checkboxes RWX for Owner/Group/Other to be checked...

Whereas 400, would require ONLY the READ/Owner to be checked...

I have the permission bits, ie: 777 or 666 or 400...

Now i'm trying to use this number and programatically determine which of the corresponding checkboxes need to be checked...

I cannot use any FTP helper functions, etc...I must do this completely independant of any library...

The reason I asked if it's possible to localize a certain number inside another...is because...

400 in binary = 110010000 - 3 bits are SET, but ONLY one checkbox (READ/Owner is checked)

However, 666 in binary = 1010011010 - 5 bits are SET and all READ/WRITE for Owner, Group, Other are checked!!!

A trivial:
((666 & 400) == 400)

Doesn't work!!! I'm not sure why it doesn't work...but it doesn't work...atleast the last time I tried it it didn't work Smile | :)

Now does it make sense what I am trying to accomplish???

Any ideas???

It's frustrating being a genius and living the life of a moron!!!
GeneralRe: bitwise operations Pin
kevincwong3-Dec-05 17:39
kevincwong3-Dec-05 17:39 
GeneralRe: bitwise operations Pin
markkuk3-Dec-05 22:27
markkuk3-Dec-05 22:27 
GeneralRe: bitwise operations Pin
Jörgen Sigvardsson4-Dec-05 2:02
Jörgen Sigvardsson4-Dec-05 2:02 
GeneralRe: bitwise operations Pin
David Crow5-Dec-05 2:57
David Crow5-Dec-05 2:57 
QuestionI need help with printing text from a view. Pin
Mark F.3-Dec-05 12:15
Mark F.3-Dec-05 12:15 
AnswerRe: I need help with printing text from a view. Pin
Gary R. Wheeler4-Dec-05 2:48
Gary R. Wheeler4-Dec-05 2:48 
QuestionTypecasting Structs to One Another Pin
Steve L.3-Dec-05 10:50
Steve L.3-Dec-05 10:50 
AnswerRe: Typecasting Structs to One Another Pin
James Brown3-Dec-05 12:21
James Brown3-Dec-05 12:21 
QuestionUsing CFormView in SDI app Pin
RoyceF3-Dec-05 7:09
RoyceF3-Dec-05 7:09 
AnswerRe: Using CFormView in SDI app Pin
Jörgen Sigvardsson3-Dec-05 10:10
Jörgen Sigvardsson3-Dec-05 10:10 
GeneralRe: Using CFormView in SDI app Pin
RoyceF3-Dec-05 12:36
RoyceF3-Dec-05 12:36 
GeneralRe: Using CFormView in SDI app Pin
Jörgen Sigvardsson3-Dec-05 14:20
Jörgen Sigvardsson3-Dec-05 14:20 
GeneralRe: Using CFormView in SDI app Pin
Gary R. Wheeler4-Dec-05 2:53
Gary R. Wheeler4-Dec-05 2:53 
GeneralRe: Using CFormView in SDI app Pin
RoyceF4-Dec-05 6:24
RoyceF4-Dec-05 6:24 
QuestionHow to list the connected USB devices or COM port Pin
BaySeagull3-Dec-05 1:34
BaySeagull3-Dec-05 1:34 
QuestionHow to generate a bmp file Pin
Ming Luo3-Dec-05 0:10
Ming Luo3-Dec-05 0:10 
AnswerRe: How to generate a bmp file Pin
BaySeagull3-Dec-05 1:16
BaySeagull3-Dec-05 1:16 

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.