[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 5.04 alive, but...



>      OK, folks you convinced me! I'll put a flag into Chemix
>      so it will be compatible with 5.04 but take advantage
>      of 6.0 where appropriate.
>      Now the 2nd question: How can I test in the most elegant
>      way, which system version the machine is running on? (I
>      mean besides picking a changed tool and testing the
>      version number).
>      
>      Any suggestions?
>      
>      -- Urs
>      
>      |  BRIGHT SOFTWARE          |  * A P P L E   I I   F O R E V E R *  |

Well, how about just using the GetVersionGS call...
================================= example =====================================
#define SYS6 0x0401

{ Boolean have_System6 = FALSE;   /* take advantage of System 6 features */
  VersionRecGS GSOSversion = {1, 0};
	.
	.
	.
  GetVersionGS (&GSOSversion);

  if (GSOSversion.version & (majorRelNumMask | minorRelNumMask) >= SYS6)
    have_System6 = TRUE;
	.
	.
	.
}

===================================
INet: mills@Max.EE.LSU.Edu (pref)
AOL: jmills@AOL.Com
Delphi: johnmills@Delphi.Com
GEnie: J.MILLS11