PDA

View Full Version : how to add version information to my program?



yleesun
9th October 2008, 07:14
hello,
I want to add version information to my program,but I donot known how to do.
please help me,thanks!

jpn
9th October 2008, 07:22
Version numbering using QMake

Kumosan
9th October 2008, 07:26
Make your program listen to a socket. Whenever a client connects to the socket end sends 'Please tell me what version you are' send back something like '1.0' or '99.3'.

Serious, not much information you give us here. What program? Command line? GUI? Or do you mean you want the build process automatically increase the version number?

yleesun
10th October 2008, 02:25
thanks you all
I have tried using qmake ,but it is not what i want.
my program is an app,I mean that when the app was compiled ok ,it could show version information in tooltip when mouse was on the icon.
Using MFC could achieve this by adding version resource.

QwertyManiac
10th October 2008, 07:49
The answer by the FAQs of Trolltech didn't make much sense to me, but I hope it helps:

http://trolltech.com/developer/faqs/faq.2007-11-09.6242788609/?searchterm=version%20information%20to%20exe

yleesun
10th October 2008, 09:30
It did not make much sense to me too.
I use resource file to add icon ,but i donot known how to add version information.

jpn
10th October 2008, 10:41
How about searching Google for something like "windows resource file version"?