Is there a way of defining something in BB4W? I have some code that needs to do allot of trading with various windows API's. When I want to pass a 'command' I am currently having to work out the value of the command from the windows .h file and insert it as a binary number in the SYS call.
So instead of doing...
Code:
I could do something like
Code:#define switch_on_red 0x00000001
#define switch_on_blue 0x00000010
#define switch_on_green 0x00000100
SYS `setlights` switch_on_red AND switch_on_blue AND switch_on_green TO r%
I guess I want to create a BB4W version of some of my favourite C header files.
Thanks in advance.
Keith