Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question how to add file info in CPP to compiled EXE?

    I'm fairly new to CPP, although I have a bit of background in VB, Perl.
    I've finished writing a simple console application that writes some registry keys.

    I compiled it, and the application works as designed in all tests so far.

    what I'm trying to do is add version and other file information to the compiled EXE.

    I'm using MinGW to compile on my Windows computer.

    The specific things I'm trying to add are what comes up when you right-click on the EXE file and choose Properties. Thing such as "Product Version", "Copyright", and "Description".

    I've looked around, and I found RCVERSION, and used it to create a "version.h" file, but I don't know what to do from here, or even if this is what I need to do at all.


    I'd appreciate any guidance in accomplishing this. Please let me know if there are any other details you need.


    Thanks in advance!

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts

  • Users who have thanked Inigoesdr for this post:

    klubbin (04-06-2009)

  • #3
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks, Inigoesdr.

    i downloaded the sample project they had on that page, and I think I figured out how they implemented the versioning, and it has nothing to do with using a "version.h" file in any way. (btw, I found this article, which seems to be an updated version of the one you linked to.)

    basically, I had to add a block to my .rc file with the info, and then re-compile and now I have the info I want. I just have to customize it a bit further and then I'll be good to go.

    in case anyone else is looking for this info, I found Microsoft's guide on this here:

    http://msdn.microsoft.com/en-us/library/aa381058.aspx

    this site also has a good article:

    http://www.codeguru.com/cpp/w-p/win32/versioning/article.php/c4539



    Thanks so much, Inigoesdr, for getting me on the right track!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •