Information générale
Catégorie:
COM/DCOM et OLE Automation
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement