Thread: Program version info - how to fill in

  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,058

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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.

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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.

  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,895
    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,195
    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.

  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,210
    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,210
    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,895
    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

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, 01: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, 03: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, 09: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