> OS 3.5 wants this:
> 
>               RGBColorType dkGray = {0x00,0x55,0x55,0x55};
>               WinSetForeColor(WinRGBToIndex(&dkGray));
> 
> and OS <3.5 wants this:
> 
>               RGBColorType dkGray = {0x00,0x55,0x55,0x55};
>               WinSetForeColor(&dkGray,NULL);
> so...
> 
> ...how do we build a single executable which supports the new color space
> AND the old "Seeing Gray" constructions?

  i am in the process of converting my games to 3.5 - and have a solution   
  (i am a bit behind schedule - but thats life)

  you can have "friendly" systems by exploiting the use of function
  pointers in C. you setup a series of "utility" functions that perform
  differently under different os versions.. 

  your "main" code uses a series of function pointers to execute the
  code at run time. when you start your application, you assign your
  function pointers as required based on the rom version.

  :> got it?

  need help.. then feel free to email me at [EMAIL PROTECTED] :)

az.
--
Aaron Ardiri 
Java Certified Programmer      http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 656 1143           A/H: +46 8 668 78 72

if you enjoy it, then it aint work :) - rule #106 of life


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to