Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OCX Type Library
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
OCX Type Library
Divers
Thread ID:
00025851
Message ID:
00025851
Vues:
81
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform