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

C / C++ / MFC

 
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 
GeneralRe: bitwise operations Pin
kevincwong3-Dec-05 17:39
kevincwong3-Dec-05 17:39 
666 => 1010011010
400 => 0110010000

bitwise & => 0010010000
It probably will not match 400 ( 0110010000 ).

In Unix, those permission are in octet.
So, you may want to try

((0666 & 0400 ) == 0400 )

If I understand your problem correctly, I probably will try
different approach.

You probably have 9 checkbox for all permissions.
I probably will have a function to take the
permission & all 9 checkbox.

Inside the function.

if ( permission & 0400 )
ownerRead->SetCheck ( TRUE);
if ( permission & 0200 )
ownerWrite->SetCheck ( TRUE);
& etc.


Kevin
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 
QuestionSaving a Bitmap from Window Enviornment Pin
Jeeva Mary Varghese2-Dec-05 22:15
Jeeva Mary Varghese2-Dec-05 22:15 

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.