Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Version Info Creation Question

Version Info Creation Question

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestionannouncementlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mepho
    wrote on last edited by
    #1

    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

    G 1 Reply Last reply
    0
    • M 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

      G Offline
      G Offline
      gx44
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups