I have this macro and it doesn't seem to work... If anybody sees an obvious mistake, please point it out to me :(

I think it should be used like this:

invoke SomeApiCall,param1,param2,RGB (red,green,blue),etc



; needs immediate values as params
RGB MACRO red,green,blue
EXITM <((blue << 16) | (green << 8) | (blue))>
ENDM
Posted on 2003-07-14 16:27:05 by QvasiModo
RGB MACRO red,green,blue

EXITM %((blue SHL 16) OR (green SHL 8) OR (blue))
ENDM
Posted on 2003-07-14 16:34:26 by bitRAKE
Wow, that was quick... :grin:
Thanks, I'll try that. :alright:
Posted on 2003-07-14 16:43:31 by QvasiModo
There was a typo in the macro bitRAKE posted (actually my fault :o ), it should be like this:
RGB MACRO red,green,blue

EXITM %((blue SHL 16) OR (green SHL 8) OR ([COLOR=red]red[/COLOR]))
ENDM
Posted on 2004-03-20 10:50:54 by QvasiModo