As always, the standard way for Apple developers to determine
which version of QuickTime is installed is by calling the Macintosh
Toolbox Gestalt function.
The following code snippet demonstrates how you can check
the version of QuickTime that is installed––in this case, QuickTime
6.4. The number 0x06408000 tests
for the shipping version of QuickTime 6.4 but fails on prerelease
versions.
/* check the version of QuickTime installed */ |
long version; |
OSErr result; |
result = Gestalt(gestaltQuickTime, &version); |
if ((result == noErr) && (version >= 0x06408000)) |
{ |
/* we have version 6.4! */ |
} |
Last updated: 2003-09-01