How is it possible to find out the Versionsnumber entered in the resource section (Of the running exe)?
Printable View
How is it possible to find out the Versionsnumber entered in the resource section (Of the running exe)?
Use HRSRC FindResource( HMODULE hModule, // module handle
LPCTSTR lpName, // pointer to resource name
LPCTSTR lpType // pointer to resource type);
and
HGLOBAL LoadResource( HMODULE hModule, // resource-module handle
HRSRC hResInfo // resource handle);
Good luck,
Oleg.
How to use this functions?
I tried it with:
=LoadResource(NULL,FindResource(NULL,"FileVersion",RT_VERSION));
What type is the returnValue?
How to get the value of the Version into a CString?