Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Build Version Number
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00062478
Message ID:
00062491
Vues:
26
>In VFP 5.0 there is the abiltity to auto-increment the build number and
>version number. How can I tap into it to display it in my application?

Under \samples\solutions\solution.app then goto Windows API, Ger File Information

Here's part of it:

This sample allows you to display version information from a .DLL or .EXE.
A new function called GetFileVersion( ) has been added to FOXTOOL.FLL which allows 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 allows 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 via the Windows Explorer. EXE files created in Visual FoxPro 3.0 will not have a file version resource.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform