Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp7 and local
Message
De
07/03/2001 01:32:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00482535
Message ID:
00482594
Vues:
8
>That makes sense. I will test local oMyTest AS dstest of dsstest.prg also.

That one's nice, but has nothing to do with binding. It simply allows you to reference the host file for the superclass of a programmatic class definition. Vcxs store this information already, but previously, we had to do a bunch of SET PROC TOs before instanciating a programmatic class with any sort of heritage.

>Do you know if this typing relates to early or late binding?

Yes, it does. Check out the help for the new parameter in CREATEOBJECTEX(). It allows you to specify an interface ID for early binding. Interface IDs are stored in the registry for every registered COM object and point to the typelib for that object.

When you early bind an object, you force the resolution of internal function pointers at compile time, rather than at runtime, bypassing VFP's need to first call IDispatch methods to locate the function address. With late bound controls, this has to be done on every call, so you can see where the performance advantage comes from. The disadvantage with early binding is that a change in the interface of the server object requires a recompilation of the client object.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform