Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Supported interfaces in live object
Message
 
To
13/07/2000 16:26:41
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00391907
Message ID:
00392120
Views:
10
>Where the heck is this thing documented? I know that this is the TLBInf32.dll file that used to only ship with VB, but now appears to ship with Outlook 2000, Office 2000,etc. I have used TLIApplication before, but only found methods to extract data from the tlb itself.

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

>Anyway, I was excited to see this 'new' method os f TLIApplication, and it apears to work in some instances, but not in others. For objects that don't work, I get the error "No such interface is supported". So I though I might look up what interface the method needed to extract the TypeInfo object (I was guessing it was ITypeInfo). But of the several objects that did not throw an error when passed to ClassInfoFromObject, I could find no two interfaces in common. So much for that theory.

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.



>
>Fortunately, the method will do for half of what I want it for- exploring an HTML page in the IE object. It appears that all of the page elements in IE support the necessary interface to allow type info extraction.
>
>But what I really need it for is checking for supported interfaces in ADSI objects. The ADSI IADsComputer object supports an optional IADsComputerOperations interface that when implem/ented allows shutdown of a remote machine through its ADSI representation. The problem is, I can't figure out how to tell if the interface is implemented before I make the call, and ClassInfoFromObject pukes when you pass it any ADSI object.

Nope... won't work there, because as I said all this stuff is dynamically created from the metabase.

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

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform