Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving the EXE version
Message
 
À
01/04/1998 11:38:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00088701
Message ID:
00088721
Vues:
41
>>>It would be nice if I could retrieve the EXE version number at runtime so that I can display it in the title bar of the application. I notice that the build button of the project manager has an auto increment of the EXE version.
>>>
>>>Is there a function that can retrieve this function automatically ?
>>>
>>>Gerry.
>>
>>You can use the GetFileVersion() function in FOXTOOLS. This applies only to 32 bit applications, BTW.
>Hi George,
>GetFileVersion, I think, uses "GetFileVersionVersionInfo" and "GetFileVersionVersionInfoSize" in Win32API. When I try to use them I get "cannot find entry point in ...". Of course my real question is regarding to any function giving this error. I can handle some of them by checking the related dll. Do you have a general suggestion ?
>Thanks
>Cetin

Cetin,

I'm pretty sure that GetFileVersion() maps directly to GetFileVersionInfo (note the spelling, that's why the entry point isn't found). I've played around with it some (before I found the Foxtools function). The problem is in extracting the information from the structure. It's not real "clean". I can supply you with some code if you like. Personally, I think it's too much work given that we've got the Foxtools function. Let me know.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform