Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HPA DLL
Message
De
30/11/1999 14:01:23
 
 
À
30/11/1999 13:23:38
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00296825
Message ID:
00297040
Vues:
45
>Set/Get are the VB equivalents for assign and access methods for a VFP native class. if you know the properties of the object, you should be able to assign values to and read values from them directly, or worst case, you'll have methods like ABC.SetSomeProperty to assign it a value and ABC.GetSomeProperty to read the value in it.

The VFP translation for a Get/Set pair in my experience usually goes

lcValue = oCOMObject.Get("SomeProperty")

and

lSuccess = oComObject.Set("SomeProperty", "SomeNewValue")


Paige- as Ed says, you're making this much more difficult than it needs to be. The COM interface gets you by all of the DECLAREs and worrying about data type translations that you need to worry about with a C library. Since this library publishes its interface through COM, windows is handling it all for you.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform