Click here to Skip to main content
15,915,324 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to debug ATL COM DLL with ASP Pin
Brian Shifrin13-Mar-03 8:08
Brian Shifrin13-Mar-03 8:08 
Generalproblem with trivial MFC app Pin
Mister Transistor13-Mar-03 6:27
Mister Transistor13-Mar-03 6:27 
GeneralRe: problem with trivial MFC app Pin
Gary Kirkham13-Mar-03 6:43
Gary Kirkham13-Mar-03 6:43 
GeneralRe: problem with trivial MFC app Pin
Mister Transistor13-Mar-03 21:54
Mister Transistor13-Mar-03 21:54 
GeneralRe: problem with trivial MFC app Pin
Gary Kirkham15-Mar-03 9:06
Gary Kirkham15-Mar-03 9:06 
GeneralRe: problem with trivial MFC app Pin
Anonymous13-Mar-03 10:55
Anonymous13-Mar-03 10:55 
Generalextracting flags from an integer Pin
Kuniva13-Mar-03 6:24
Kuniva13-Mar-03 6:24 
GeneralRe: extracting flags from an integer Pin
Hesham Amin13-Mar-03 6:54
Hesham Amin13-Mar-03 6:54 
Hi..
the good news is that you don't need to be good at math Smile | :)
use bitwise and operator &

msdn explains it better than me:
The bitwise-AND operator compares each bit of its first operand to the corresponding bit of its second operand. If both bits are 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0.

so if you need to check the first bit (the first boolean property) use :
if(intVar & 1)
to check the second use :
if(intVar & 2)
etc..
so you compere with 1,2,4,8 etc ..
got it ?
GeneralRe: extracting flags from an integer Pin
Gary Kirkham13-Mar-03 6:55
Gary Kirkham13-Mar-03 6:55 
GeneralRe: extracting flags from an integer Pin
Hesham Amin13-Mar-03 7:11
Hesham Amin13-Mar-03 7:11 
GeneralRe: extracting flags from an integer Pin
Nitron13-Mar-03 8:11
Nitron13-Mar-03 8:11 
GeneralSystem Variables and PATH Pin
Brian Delahunty13-Mar-03 5:53
Brian Delahunty13-Mar-03 5:53 
GeneralDoubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 5:18
Brent Lamborn13-Mar-03 5:18 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham13-Mar-03 7:01
Gary Kirkham13-Mar-03 7:01 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 8:52
Brent Lamborn13-Mar-03 8:52 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham13-Mar-03 9:03
Gary Kirkham13-Mar-03 9:03 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 9:13
Brent Lamborn13-Mar-03 9:13 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham13-Mar-03 9:08
Gary Kirkham13-Mar-03 9:08 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 11:06
Brent Lamborn13-Mar-03 11:06 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham13-Mar-03 11:10
Gary Kirkham13-Mar-03 11:10 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 11:19
Brent Lamborn13-Mar-03 11:19 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham13-Mar-03 11:40
Gary Kirkham13-Mar-03 11:40 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 17:19
Brent Lamborn13-Mar-03 17:19 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham14-Mar-03 2:09
Gary Kirkham14-Mar-03 2:09 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham14-Mar-03 2:33
Gary Kirkham14-Mar-03 2:33 

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.