Thread: version?

  1. #1
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946

    version?

    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.
    hello, internet!

  2. #2
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    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

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    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
    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
    Enjoy!

    PS: Any "???" reference should be replaced with your info.

  4. #4
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    thanks!
    hello, internet!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. No Version info tab in file properties?
    By cpjust in forum Windows Programming
    Replies: 2
    Last Post: 06-03-2008, 03:42 PM
  3. How to set File Version of VC++ 6 dll
    By mercury529 in forum Windows Programming
    Replies: 3
    Last Post: 12-08-2006, 02:49 PM
  4. Finding the windows version...
    By The_Muffin_Man in forum Windows Programming
    Replies: 1
    Last Post: 06-10-2004, 11:39 PM
  5. Version info?
    By Aidman in forum Tech Board
    Replies: 7
    Last Post: 07-03-2003, 10:44 AM