Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7 and new feature of CreateobjectEx
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00456325
Message ID:
00456339
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform