Program version info - how to fill in

This is a discussion on Program version info - how to fill in within the Windows Programming forums, part of the Platform Specific Boards category; In Windows Explorer, when you right-click on a program (EXE), and choose "properties", there's sometimes a version tab (not all ...

  1. #1
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582

    Program version info - how to fill in

    In Windows Explorer, when you right-click on a program (EXE), and choose "properties", there's sometimes a version tab (not all programs have it), and it contains things like the program version, and some other elements. How are these things filled out?

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    Project->Insert Resource.
    Then choose the "version" resource.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Where's "Insert Resource" at? I don't see it in any of the menu headers.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    Or we could just play "guess your IDE" for a while longer.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Quote Originally Posted by Salem View Post
    Or we could just play "guess your IDE" for a while longer.
    Huh!? What do you mean by this? I'm guessing IDE as, given the context of my question, the program used to write the computer programs in. If so, it's Visual C++ 2005 Express. If not, then please explain what you mean by this? What does IDE stand for anyway?

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Integrated Development Environment. Your guess is right.

    You should always specify your IDE when asking questions not strictly related to code.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Bloodshed DEV C++ has an integrated feature to add the version info to your program, it also does build+=1 each time you compile, which is nice.

    Havent figured otu how to get VC++ to do that yet, or if it even can.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  9. #9
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    I thought it was related to code, as in it being a structure like this which is code-related:

    VersionInfo.ApplicationName = "The Interactive Animation";
    VersionInfo.Version = "1.1";
    VersionInfo.CreatedBy = "ulillillia";
    ...

    I just thought there was some function that was called or struct that was filled out, both cases are entirely code-related.

  10. #10
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    Version info should look something like this in your resource file:
    Code:
    1 VERSIONINFO
    FILEVERSION <insert version>
    PRODUCTVERSION <insert product version>
    FILEOS <insert fileos flag>
    FILETYPE <insert filetype flag>
    {
            BLOCK "StringFileInfo"
            {
                    BLOCK "040904b0" /* this combination of language ID and charset ID = USEnglish*/
                    {
                            VALUE "FileVersion", "<insert version num>"
                            VALUE "FileDescription", "<insert description>"
                            <repeat this for any "string-name" value you want included>
                    }
            }
    
            BLOCK "VarFileInfo"
            {
                    VALUE "Translation", <INSERT LANG ID HERE>,  <INSERT CHARSETID HERE>
            }
    }
    You'll have to take a look at the VERSIONINFO link to figure out what values to replace my angle bracket comments with.

  11. #11
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Resource file? What's that? Where and how would I edit it?

  12. #12
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Giyf.

  13. #13
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Quote Originally Posted by MacGyver View Post
    Giyf.
    What does that mean?

    Anyway, I found the resource file - resources.rc, but when I double-click it, I get a dialog and I see an exclamation point in a red circle with a note saying "resource editing is not supported on the Visual C++ Express SKU". Does that mean I'm unable to edit this because I have the Express edition?

  14. #14
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Quote Originally Posted by ulillillia View Post
    What does that mean?
    So ironic.

  15. #15
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Quote Originally Posted by ulillillia View Post
    What does that mean?
    It means that GIYF. In a less nice version, also known as STFW.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 12:41 PM
  2. Help doing an e-mail program in c...
    By Tyler_Durden in forum C Programming
    Replies: 88
    Last Post: 01-02-2005, 02:12 PM
  3. info on a program copying itself
    By linucksrox in forum C Programming
    Replies: 6
    Last Post: 05-16-2004, 12:41 PM
  4. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 08:48 AM
  5. WinXP 64-bit version info
    By Witch_King in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-16-2001, 03:16 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21