Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Supported interfaces in live object
Message
From
13/07/2000 21:38:52
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00391907
Message ID:
00392181
Views:
9
>>Where the heck is this thing documented?

>nowhere. There's one KB article on it somewhere but it's dated and wrong in many places.
>

Actually, Mike posted a link that leads to a chm for the file that appears to have everything. I don't know why this file wouldn't be distributed or even referenced in MSDN, or VS enterprise.

>Whatever object you look at must be in the type library. Dynamic objects (such as VFP SCATTER NAME objects or objects constructed on the fly like SOAP objects, or ADSI objects) won't show up. VFP EXE servers also don't seem to work.

Except ADSI objects are not really dynamic objects- they have documented interfaces- (activeds.tlb). It's just that by the time the object is instanciated, I can't tell which interfaces have been implemented. When calling oComputer.Shutdown(), you don't get a "unknown method" error, you get "interface not implemented". It's as if the tlb is lying and the client doesn't know until an attempt is made to call one of the functions. Perhaps if VFP had access to IUnknown::QueryInterface, but somehow I think that that would lie too.

>I think what you need is to build an ADSI explorer/crawler, which is not terribly difficult to do...

I have already built a nice little ADSI browser that uses an object's associated Schema object to fill a tree, but the Schema object doesn't account for methods, and even if it did, it uses a static object definition, so I don't think that it would work anyway.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform