Retrieving version number [Archive] - Quintessential Forum

PDA

View Full Version : Retrieving version number


plover
01-17-2004, 04:27 AM
The current beta versions still return 4.11 (0x0004000B) from opGetPlayerVersion. Is there a way to retrieve the build number? (If I recall correctly, release builds are numbered consecutively in the same sequence as the beta builds, yes?)

If there is no way to do this within QCD, is running GetFileVersionInfo on QCDPlayer.exe probably the best way to accomplish this? It looks like this should return (for b67) a version number of 4.1.1.67 (0x00040001, 0x00010043). So in order to tie features to a build number, it should only ever be necessary to test against the 4th field of the version number (meaning for both release and beta builds)?

Paul
01-30-2004, 06:50 PM
opGetPlayerVersion doesn't return the build number due to lack of foresight, and also I don't think targetting a plugin to a development build is a good thing. A new feature introduced in a dev build may change by the time it gets released.

I guess you can check the version resource, but I've forgotten to update it in the past so it's not 100% reliable.