when one right clicks on an .exe or .dll and choses properties, sometimes if its a win32 executable there's a "version" tab. how does one make this tab in his own programs? i use mingw, if that's relevant.
Printable View
when one right clicks on an .exe or .dll and choses properties, sometimes if its a win32 executable there's a "version" tab. how does one make this tab in his own programs? i use mingw, if that's relevant.
Well, in MSVC++, you can create a type of resource called 'version' or 'version sheet' or something which you input all different info bout ur prog
I snagged some code from a MSVC++ header file to accomplish this using mingw (it works with other compilers too). Here is an example.
This goes in your resource file
Enjoy!Code:
VS_VERSION_INFO VERSIONINFO
//Fill in the file version and product version accordingly
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,2,2
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "???\0"
VALUE "CompanyName", "???\0"
VALUE "FileDescription", "???\0"
VALUE "FileVersion", "???\0"
VALUE "InternalName", "???\0"
VALUE "LegalCopyright", "???\0"
VALUE "OriginalFilename", "???\0"
VALUE "ProductName", "???\0"
VALUE "ProductVersion", "???\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
PS: Any "???" reference should be replaced with your info.
thanks! :)