Get Version Information Sample
File: ...\Samples\Solution\WINAPI\Getver.scx
This sample makes it possible for you to display version information from a .dll or .exe.
A new function called GetFileVersion( ) has been added to Foxtool.fll ,which makes it possible for you to obtain version information on a file. The following code illustrates how you can call the function. See Tools\Foxtools.hlp for details on the specific array elements.
SET LIBRARY TO FoxTools ADDITIVE
DIMENSION aFileVer[12]
nRetVal = GetFileVersion(GetFile("EXE"),@aFileVer)
IF nRetVal = 0
DISPLAY MEMO LIKE aFileVer
ENDIF
SET LIBRARY TO
Note
Visual FoxPro now makes it possible for you to add File Version information to EXE and DLL files at build time. This version information is stored in a file resource and can be accessed using the Windows Explorer. EXE files created in Visual FoxPro 3.0 will not have a file version resource.
See Also
Tasks
Reference
Visual FoxPro Foundation Classes A-Z