CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BCB3] Access to version numbering at runtime?



This info is stored in the project's resource file.  I'm not sure how to access
it, but the rc script to generate it looks like this:

VERSIONINFO_1 VERSIONINFO
FILEVERSION 1, 0, 0, 0
PRODUCTVERSION 1, 0, 0, 0
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
{
 BLOCK "StringFileInfo"
 {
  BLOCK "040904E4"
	{
	 VALUE "CompanyName", "A Company\000\000"
	 VALUE "FileDescription", "A File Description\000"
	 VALUE "FileVersion", "1.00\000\000"
	 VALUE "InternalName", "An Internal Name\000"
	 VALUE "LegalCopyright", "Copyright Information\000\000"
	 VALUE "OriginalFilename", "FileName.Exe\000"
	 VALUE "Programmer", "Giles Biddison\000"
  }
 }

 BLOCK "VarFileInfo"
 {
  VALUE "Translation", 0x409, 1252
 }

}

I'm sure you'd need to use API Resource functions to get at the details.
Good luck,

Giles


W Komornicki's Home Page | Main Index | Thread Index