This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma comment(lib,"Version.lib") | |
#define MAX_LINE_LENGTH 4096 | |
CString GetFileVersion(LPCTSTR filePath) | |
{ | |
CString ret(_T("")); | |
DWORD dummy; | |
DWORD dwSize = GetFileVersionInfoSize(filePath, &dummy); | |
if (dwSize == 0) ret = _T("Error retriving version(Module Not Found)"); |
OlderNewer