每个exe或者dll文件,都可以生成自己的version文件
例如,project的名字是Demo,在工程目录下,有个Demo.rc文件,内部会有一个VC_VERSION_INFO的结构,如下:
其中有以下信息:
FileVersion:The Value member identifies the version of this file. For example, Value could be "3.00A" or "5.00.RC2".
ProductVersion:The Value member identifies the version of the product with which this file is distributed. For example, Value could be "3.00A" or "5.00.RC2"
具体的读取方法,见CSDN上有个demo工程:
http://download.csdn.NET/source/2933816 比较不错,里面的demo可以读取出来VC_VERSION_INFO中的各项信息。
http://blog.csdn.net/augusdi/article/details/6338086说的比较不错