provided by: 
Originally published at Internet.comCVersionInfo is a tiny class, which wraps the stuff needed to get the version info from a resource file. It handles both, the fixed version information and the language dependent string version information of the resource file. It contains three CString members which hold the retrieved information: Â Â Â m_strFixedFileVersion:Â the fixed file version info (language independent) Â Â Â m_strFixedProductVersion: the fixed product version info (language independent) Â Â Â m_strVersionInfo:Â Â the desired version info string (language dependent)
To get the language dependent string version info you need to set the following parameters as follows:
strLangID:
strLangID is the language ID for which the version info is desired
040904E4 means e.g.:
04--- = SUBLANG_ENGLISH_USA
-09-- = LANG_ENGLISH
--04E4 = 1252 = Codepage for Windows:Multilingual
strInfoType:
strInfoType is the desired version entry, eg.:"ProductName", or "ProductVersion"
hModule:
hModule ist the Instance handle of the module for which the version info should be retrieved
with EXE's: Get hModule calling AfxGetInstanceHandle.
with DLL's: Get hModule calling ::GetModuleHandle ("DLLName"), where "DLLName" is the Name of the module
Important!
CVersionInfo requires to be linked with VERSION.LIB! ...
Read article at Internet.com site