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:
00456721
Views:
18
>>An example would be the ADsDSOObject. It does not support the IDispatch interface; however, I would like to use it in VFP.
>
>Now that I've had a chance to wipe the sleep out of my eyes and grab a latte, I'm unclear on what you're wanting to do here. ADSDSOObject is just the provider you use to access a directory service via ADO, and hence one should be able to use the ADO IDispatch interfaces to access the service. What am I missing?
>
>> Could I create an instance of this specifying something like the IDBCreateSession or IDBInitialize interface?
>
>This should still work, BTW. (Disclaimer: haven't tried it yet.)

Mike,
This was a bad example because I was looking at the available ADSI objects and I thought this was something else.

A better example for this would be to get a different interface other than the default. If you use GetObject('WinNT://MyDomain/MyComputer'), you will get the IADsComputer interface. The Shutdown method is not available for this interface but it is availbel if you use the IADsComputerOperations interface.

FWIW, I tried specifying the keyword "computeroperations" with MyComputer to get that interface but it threw an Unknown COM status error.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform