User forums > Using Code::Blocks
Creating Version Info
Shlaklava:
When compiling my project in other IDEs such as Bloodshed DevC++ I was able to attach version info to the executable description. Is there any way to do that in Code::Blocks?
MortenMacFly:
--- Quote from: Shlaklava on August 25, 2007, 08:04:33 am ---Is there any way to do that in Code::Blocks?
--- End quote ---
Sure. You only need to the version info part to your RC file (assuming you already have one, for icons or similar). If not: Create a new RC file and add the part. C::B will compile and link it for you if you just add the RC file to your project. There is VersionInfo plugin for C::B that might help you to fill the resource content automatically... but I never tried that -> but it sounds interesting though...
With regards, Morten.
Shlaklava:
Thank you very much. Now it will be much easier to my Beta Testers what version they have.
PsYhLo:
http://forums.codeblocks.org/index.php/topic,6294.0.html
JGM:
The autoversioning plugin that I did may help you with that, it generate a version.h with various variable declarations and two defines to use on rc files. I haven't tested it with rc files but it should be something like this:
--- Code: ---#include "version.h" //File generated by the plugin with the
//AutoVersion::RC_FILEVERSION and
//AutoVersion::RC_FILEVERSION_STRING
//defines.
aaaa ICON "app.ico"
1 VERSIONINFO
FILEVERSION AutoVersion::RC_FILEVERSION
PRODUCTVERSION AutoVersion::RC_FILEVERSION
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L // 0x1L = EXE, 0x2L = DLL
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "My Company"
VALUE "LegalCopyright", "(c) 2007 My Copyrights"
VALUE "FileDescription", "Blah"
VALUE "FileVersion", AutoVersion::RC_FILEVERSION_STRING
VALUE "InternalName", "AppName"
VALUE "OriginalFilename", "app.exe"
VALUE "ProductName", "Appname blahh"
VALUE "ProductVersion", AutoVersion::RC_FILEVERSION_STRING
VALUE "Comments", "This is a beta app"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
--- End code ---
If you want to test it follow the links on my signature for mor info on the forum and downloads. I have created also a berlios account for it. If something goes wrong or goes fine I will appreciate if you report it :D. I think that the plugin should also generate an rc file under windows, that should be a feature maybe. :roll:
Navigation
[0] Message Index
[#] Next page
Go to full version