User forums > General (but related to Code::Blocks)

Writing file information to exe

(1/2) > >>

O-san:
Is it possible to write file information in CB to the built executable. I am talking about the information that is available when you look at the properties of a file; product name, publisher, product language etc. I think in xcode and vc these things can be handled from within the IDE. Is there something similar in CB?

MortenMacFly:

--- Quote from: O-san on April 02, 2011, 09:45:54 am ---Is there something similar in CB?

--- End quote ---
Use a proper resource file for this purpose and add it to your project so that it get compiled / linked in. I remember that there was a template in the forums...

ptDev:
Code::Blocks doesn't provide you with any user interface for this.

However, you can manually add this information to your resources file (usually called resource.rc).

Two useful links:

Stackoverfl0w: How to change an executable's properties discussion.
MSDN: Resource-definition statements.

Thinking about it, it would be nice to have such a plugin :)

MortenMacFly:

--- Quote from: ptDev on April 02, 2011, 10:22:25 am ---Thinking about it, it would be nice to have such a plugin :)

--- End quote ---
Why a plugin? All you need is a resource file template which is here in the forums, or the link to Stackoverfl0w ptDev provided. Updating the version fields to your needs is very easy! There is really no need for a fancy UI. I mean: It's like writing a plugin that creates Hello World apps. :lol:

EDIT: Here is the link I mentioned in the forums (my own post btw...)
http://forums.codeblocks.org/index.php/topic,6775.msg51955.html#msg51955

O-san:
Thanks! That bit of info was what I was looking for. I had already a resource file for the program icon. However, for some reason the VERSIONINFO block is not present after building the exe. The field in the file properties window is just empty. :(

Navigation

[0] Message Index

[#] Next page

Go to full version