Re: Read a application version number




alanglloyd@xxxxxxx wrote:
DIKonsult wrote:
Thanks, but it don't seem to work. All I get is an empty string.


You may be attempting to access the wrong language string. The
VS_VERSIONINFO contains VS_FIXEDFILEINFO, VarFileInfo (which has
entries for each language for which entries are in StringFileInfo),
and StringFileInfo. StringFileInfo has entries of all the standard version info for each language id in the list in VarfileInfo.

Each language StringFileInfo entry has an Id the same as the language
entry in VarFileInfo. So one could enumerate (or find from) VarFileInfo
the language which is in StringFileInfo.

There is usually only one version language entry, but there could be
lots.

I have a small app which displays this arrangement, email me if you
would like a copy.

Alan Lloyd

Second posting because I clicked the wrong button & sent an unfinished
posting <g>.

.


Quantcast