Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Version number from a VFP COM
Message
From
06/12/2000 09:02:45
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00445371
Message ID:
00449872
Views:
8
>>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
Map
View

Click here to load this message in the networking platform