#define DEC or HEX? 
Author Message
 #define DEC or HEX?

Hi,

#define FILE_ATTRIBUTE_NORMAL           0x00000080

Is this 80Decimal or 80Hexadecimal?
Thanks
--
Regards,

Patrick Mast
http://www.*-*-*.com/



Sat, 24 Jan 2004 20:14:33 GMT  
 #define DEC or HEX?

Quote:

> #define FILE_ATTRIBUTE_NORMAL           0x00000080

> Is this 80Decimal or 80Hexadecimal?

Hexadecimal of course! The 0x prefix determines radix 16. 80 is
decimal, 0x80 hexadecimal (128 decimal).

Torsten



Sat, 24 Jan 2004 20:21:17 GMT  
 #define DEC or HEX?
Hexadecimal. Note the use of the hexadecimal-constant integer-suffix -- 0x.

HTH,

Jeff...
--
Please post all follow-ups to the newsgroup only.

Quote:

> Hi,

> #define FILE_ATTRIBUTE_NORMAL           0x00000080

> Is this 80Decimal or 80Hexadecimal?
> Thanks
> --
> Regards,

> Patrick Mast
> http://www.Patrick.Be.kz



Sat, 24 Jan 2004 20:29:16 GMT  
 #define DEC or HEX?
Torsten,

Quote:
> > #define FILE_ATTRIBUTE_NORMAL           0x00000080
> > Is this 80Decimal or 80Hexadecimal?
> Hexadecimal of course! The 0x prefix determines radix 16. 80 is
> decimal, 0x80 hexadecimal (128 decimal).

Thanks! ;-)

And this:
#define GENERIC_ALL (0x10000000L)
Is this 268435456 decimal?

Sorry for the basic questions! ;-)
--
Regards,

Patrick Mast
http://www.Patrick.Be.kz



Sat, 24 Jan 2004 20:31:52 GMT  
 #define DEC or HEX?

Quote:

> #define GENERIC_ALL (0x10000000L)
> Is this 268435456 decimal?

Absolutely right! The L simply says: "The type if the constant value
is long int".

Torsten



Sat, 24 Jan 2004 20:38:14 GMT  
 #define DEC or HEX?

Quote:

> #define FILE_ATTRIBUTE_NORMAL           0x00000080

> Is this 80Decimal or 80Hexadecimal?

Buy a C++ book and stop wasting people's time (including your own).


Sun, 25 Jan 2004 00:01:51 GMT  
 #define DEC or HEX?
Hey moron,
This is a newsgroup to help people.  If anybody has a question, no matter
how simple, they should feel free to ask it.

Quentin.


Quote:


> > #define FILE_ATTRIBUTE_NORMAL           0x00000080

> > Is this 80Decimal or 80Hexadecimal?

> Buy a C++ book and stop wasting people's time (including your own).



Sun, 25 Jan 2004 00:54:01 GMT  
 #define DEC or HEX?

Quote:
> This is a newsgroup to help people.  If anybody has a question, no matter
> how simple, they should feel free to ask it.

Of course they should. And I should feel free to tell them how stupid they
are for trying to learn such simply, basic things by posting newsgroup
messages, instead of cracking a book. It just doesn't make sense.


Sun, 25 Jan 2004 01:36:33 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. #define DEC or HEX?

2. converting hex to dec (from a file)

3. hex to dec - strtol works best!!

4. HEX to DEC IMAL problemo

5. Converting from hex to dec

6. Help... conversion of hex to dec

7. Text to Hex to Dec conversion

8. hex to dec function?

9. dec to hex conversions.....more

10. hex to dec

11. Convert Dec to Hex??

12. BIN HEX DEC conversions...HELP!!!!

 

 
Powered by phpBB® Forum Software