Version Info Creation Question
-
Does anyone know how to create a version info, using VERBLOCK and VERHEAD I need to create my own version resource and call updateresource to put in new values into an executeable (ie. making Comments, InternalName, OriginalFilename, ... etc) ANY HELP WOULD BE APPRECIATED sample code >< Thanks Mepho
-
Does anyone know how to create a version info, using VERBLOCK and VERHEAD I need to create my own version resource and call updateresource to put in new values into an executeable (ie. making Comments, InternalName, OriginalFilename, ... etc) ANY HELP WOULD BE APPRECIATED sample code >< Thanks Mepho
This type of resource is usualy not to be modified once you set it. Why would you want to change it from within your program ? I use the following code lines in the "resource.rc" file: #ifndef _MAC //////////////////// // Version Info VS_VERSION_INFO VERSIONINFO FILEVERSION 0,0,0,0 PRODUCTVERSION 0,0,0,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x40004L FILETYPE 0x1L FILESUBTYPE 0x0L { BLOCK "StringFileInfo" { BLOCK "041804b0" { VALUE "Comments", "\0" VALUE "CompanyName", "\0" VALUE "FileDescription", "\0" VALUE "FileVersion", "0.0.0.0\0" VALUE "InternalName", "\0" VALUE "LegalCopyright", "\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "\0" VALUE "PrivateBuild", "0\0" VALUE "ProductName", "\0" VALUE "ProductVersion", "0.0.0.0\0" // here you can insert other values of your own, like: // VALUE "DISCLAIMER", "Your own Disclaimer\0" } } BLOCK "VarFileInfo" { VALUE "Translation", 0x418, 1200 } } #endif // !_MAC