Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Version number from a VFP COM
Message
De
06/12/2000 09:02:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00445371
Message ID:
00449872
Vues:
14
>>How do I display the version number of a VFP COM object? I would like to do this as a property in the COM object; i.e., oTest.Version.
>>
>>I know that in VB, you would do something like this:
>>Public Property Get Version()
>>Version = App.Major & "." & App.Minor & "." & App.Revision
>>End Property
>>
>>I would like to accomplish the same thing in VFP.
>>
>>Thanks,
>>
>Dan,
>
>If the COM server is an in-process server (DLL) this information isn't available. VFP doesn't store the version information in the DLL as it does in an EXE. Therefore, there's no information for the OS to retrieve. You can test this yourself by right clicking a VFP DLL and selecting properties. There's no version tab. I went as far as using the GetFileVersionInfoSize() function in Version.dll, but that returns 0 (and GetLastError() does also), indicating that this information isn't present.

Thanks Everyone,

Guess I'll have to create a version property and remember to change the number whenever I recompile it.

Hope this changes in Version 7 (or is that now VFP.NET).

Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform