Important: The information in this document is obsolete and should not be used for new development.
As always, the standard way for Apple developers to determine
which version of QuickTime is installed is by calling the Macintosh
Toolbox API Gestalt function. (This Mac
OS function is also included in QuickTime for Windows.)
Listing 1-1 shows a code snippet that demonstrates how you can check the version of QuickTime that is installed––in this case, QuickTime 6. Note that the number 0x06008000 will test for the GM version of QuickTime 6 but will fail on pre-release versions of QuickTime.
Listing 1-1 Determining which version of QuickTime is installed by calling the Gestalt function
{ |
/* check the version of QuickTime installed */ |
long version; |
OSErr result; |
result = Gestalt(gestaltQuickTime,&version); |
if ((result == noErr) && (version >= 0x06008000)) |
{ |
/* we have version 6! */ |
} |
} |
Last updated: 2002-07-01