Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-05-2009, 01:57 AM   PM User | #1
klubbin
New to the CF scene

 
Join Date: Apr 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
klubbin is an unknown quantity at this point
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!
klubbin is offline   Reply With Quote
Old 04-06-2009, 12:07 AM   PM User | #2
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,604
Thanks: 2
Thanked 399 Times in 392 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
This might help: http://www.codeproject.com/KB/cpp/rcversion.aspx
Inigoesdr is offline   Reply With Quote
Users who have thanked Inigoesdr for this post:
klubbin (04-06-2009)
Old 04-06-2009, 02:16 AM   PM User | #3
klubbin
New to the CF scene

 
Join Date: Apr 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
klubbin is an unknown quantity at this point
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!
klubbin is offline   Reply With Quote
Reply

Bookmarks

Tags
compile, cpp, description, exe, info

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:51 PM.


Advertisement
Log in to turn off these ads.