Constant declarations for mac OSX

Anders F Björklund afb at
Thu Feb 23 08:20:09 PST 2006

Gareth Baker wrote:

> I need to declare:
> const OSType	kEventClassCommand            = FOUR_CHAR_CODE("cmds");
> Browsing the documentation seems to indicate I need a template but I can't seem
> to work out how. Can 
> anybody help?

Not what you want (since it isn't automatic), but I used:

# echo "cmds" | hexdump
0000000 636d 6473 0a00

Which means that the value of your constant is 0x636d6473


More information about the Digitalmars-d-learn mailing list