Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OCX Type Library
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
OCX Type Library
Miscellaneous
Thread ID:
00025851
Message ID:
00025851
Views:
85
I am using an OCX called MapObjects with Visual FoxPro. The help file sample code is written in Visual Basic and I am converting it to Visual FoxPro. Everything works fine except for the Constant values; i.e., moPoint, moLine, moPolygon. Visual FoxPro reports that these variables are undefined. So far my only solution is to set up all of the Constants as #DEFINE's in a #INCLUDE file.

I have learned that the MapObjects constants are actually defined in a Type Library, a special binary information block usually stored within the OCX or DLL server. VB uses standard OLE functions to access, read and convert this information into its own language specific constants. Originally, VB and VC++ were the only environments which supported this feature. Delphi recently added this ability in the latest patch release to Delphi 2.0.

I am still learning Visual FoxPro. Can anyone tell me if I am doing something wrong, or is this just a problem with the way Visual FoxPro handles OCX Type libraries?
Dennis Lindeman
Next
Reply
Map
View

Click here to load this message in the networking platform