Get version information

zhaozj2021-02-16  50

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);

转载请注明原文地址:https://www.9cbs.com/read-20257.html

New Post(0)