Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP7 and new feature of CreateobjectEx
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00456325
Message ID:
00456339
Vues:
22
>With the new third parameter of the CreateobjectEx function used to specify an interface, is VFP still going to be limited to COM objects that inherit from IDispatch?

Nope, give a IID and you've got a reference to a non-IDispatch interface. GetObject() can do that for you, too, if you pass it an IDispatch object reference, and then specify which interface you want.

> Or will the early-binding that takes place alleviate that?

This is correct.

>An example would be the ADsDSOObject. It does not support the IDispatch interface; however, I would like to use it in VFP. Could I create an instance of this specifying something like the IDBCreateSession or IDBInitialize interface?

You should be able to. My current install on my home box is kind of, err, broken right now, so I'll have to wait until I get to work to check and be certain.
Mike Stewart
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform