My own Version
-
How can I query "my own" DLL version (i.e. the version a DLL which is loaded into the current process, and where the code to query the version is implemented in= I have a horribly complex (and ugly) class that does this for any DLL, I wonder if there's an easier way for a DLL that is loaded. TIA Peter
Those who not hear the music think the dancers are mad. [sighist] [Agile]
-
How can I query "my own" DLL version (i.e. the version a DLL which is loaded into the current process, and where the code to query the version is implemented in= I have a horribly complex (and ugly) class that does this for any DLL, I wonder if there's an easier way for a DLL that is loaded. TIA Peter
Those who not hear the music think the dancers are mad. [sighist] [Agile]
- Using the GetFileVersionInfo Win32 API, refer to MSDN for usage; -OR- 2) Add a export function,say GetVersionNember,into your DLL for query its version number by its customer(client),the following is a simple example,
//... const WORD LOW_VER_NUM = 0; const WORD HIGH_VER_NUM = 1; //... DWORD GetVersionNumber() { return MAKELONG(LOW_VER_NUM,HIGH_VER_NUM); }
Hope this helps!;P
- Using the GetFileVersionInfo Win32 API, refer to MSDN for usage; -OR- 2) Add a export function,say GetVersionNember,into your DLL for query its version number by its customer(client),the following is a simple example,