General information
Category:
COM/DCOM and 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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only