帮助/关于中的版本号 [英] Version # in Help/About

查看:78
本文介绍了帮助/关于中的版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发正在创建软件包的项目,当客户/最终用户打开产品并需要他/她需要提供版本号和日期的帮助时,需要将其部署在客户端PC上,我想在帮助->中包括此信息;>关于页面我该怎么做.
当我部署此软件时,它驻留在C驱动器上,其日期为00/00/0000,版本号为13,0,0,0,该怎么办.

非常感谢您

I am working on project which is creating package need to be deploy on client pc when client/end user open the product and need help he or she need to give version# and date I want to include this information in Help->> About page How can I do that.
When I deploy this software it reside in C drive has version # 13,0,0,0 built on date 00/00/0000 how can I do that.

Thank you very much

推荐答案

我认为,最简单的方法是执行一个预构建任务,该任务将信息写入资源文件中,因此您可以从那里阅读.我确定您可以编写代码以获取版本号,但我不确定是否可以编写获得构建日期的代码,我认为您需要为此构建自己的机制.
The easiest way, I think, is to have a prebuild task that writes that info in to a file that is a resource, so you can read it from there. I am sure you can write code to get the version #, I am not so sure it''s possible to write code that gets the build date, I think you need to build your own mechanism for that.


您应该在运行时从可执行模块中提取版本信息.此可执行模块应具有版本信息资源.

例如,请参阅:

http://stackoverflow.com/questions/420185/how-to-get-the-version-info-of-a-dll-in-c [ http://stackoverflow.com/questions/6763262/c-get-version- from-rc-into-code [ ^ ],
http://stackoverflow.com/questions/316626/how-do-i-read-from-a-version-resource-in-visual-c [ http://stackoverflow.com/Questions/940707/how-do-i-programatically-get-the-version-of-a-dll-or-exe [ http://vcpptips.wordpress.com/2009 /03/30/how-to-get-version-information-of-an-application/ [ ^ ].

—SA
You should extract version information during run time from the executable module. This executable module should have the version information resource.

For example, please see:

http://stackoverflow.com/questions/420185/how-to-get-the-version-info-of-a-dll-in-c[^],
http://stackoverflow.com/questions/6763262/c-get-version-from-rc-into-code[^],
http://stackoverflow.com/questions/316626/how-do-i-read-from-a-version-resource-in-visual-c[^],
http://stackoverflow.com/questions/940707/how-do-i-programatically-get-the-version-of-a-dll-or-exe[^],
http://vcpptips.wordpress.com/2009/03/30/how-to-get-version-information-of-an-application/[^].

—SA


这篇关于帮助/关于中的版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆