DWord dwsize = getfileversioninfosize (strexename.getBuffer; char * szversion = new char [dwsize]; getFileVersionInfo (strexename.getBuffer); Null, DWSIZE, SZVersion;
VS_FIXEDFILEINFO * lpFixedFileInfo; UINT cbFixedFileInfo; VerQueryValue (szVersion, TEXT ( "//"), (LPVOID *) & lpFixedFileInfo, & cbFixedFileInfo ");... CString strVersion; strVersion.Format ("% d% d% d% d / n ", HiWord (lpfixedfileinfo-> dwfileversionms), loword (lpfixedfileinfo-> dwfileversionms), HiWord (lpfixedfileinfo-> dwfileversionls), loword (lpfixedfileinfo-> dwfileversionls);