Click here to Skip to main content
15,910,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to debug ATL COM DLL with ASP Pin
mdivatia@hotmail.com13-Mar-03 8:00
mdivatia@hotmail.com13-Mar-03 8:00 
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 
I have an integer. For example my integer is 2147483712.
Now in hex form this is: 0x80000040

Now i need this system that works with "flags", flags as in a property that can be given to an object (what kind of object or whatever is beside the point). For example:

Property name HEX DEC

Property1 0x1 1
Property2 0x2 2
Property3 0x4 4
Property4 0x8 8
Property5 0x10 16
Property6 0x20 32
... and so on till
Property32 0x80000000 2147483648

So the object can have different properties which are put together into a single integer like this:

For example an object has properties 7 and 32 so the integer is 2147483712 as mentioned before. My question is, how do parse this, how do i get the individual properties from the integer, there must be an algorithm for this but i can't think of it.. (i never was very good at maths). So can anyone help me?

Thanks

Kuniva
--------------------------------------------

GeneralRe: extracting flags from an integer Pin
Hesham Amin13-Mar-03 6:54
Hesham Amin13-Mar-03 6:54 
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 

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.