Board index » delphi » Help on OLE Automation Objects: Properties and Methods
Brinn
![]() Delphi Developer |
Wed, 05 Jul 2000 03:00:00 GMT
|
Brinn
![]() Delphi Developer |
Wed, 05 Jul 2000 03:00:00 GMT
Help on OLE Automation Objects: Properties and MethodsI am trying to find out the exposed methods and properties of OLE How do you do something like this with delphi? I imagine that I will have to use the IDispatch interface and somehow I am not sure where to go. I can create a reference to the object, OleObject : OleVariant; procedure Button1Click(Sender : TObject); But what do I need to do to create a list of the properties and Any help would be greatly appreciated. Jason T. Ashmead |
Scott Samet [TeamB
![]() Delphi Developer |
Thu, 06 Jul 2000 03:00:00 GMT
Re:Help on OLE Automation Objects: Properties and MethodsQuoteIn article <34C17F48.7A3F6...@ash.net>, Brinn wrote: have to know what to call. You'll need documentation or a typelib. If you've got a typelib, |
Jason T. Ashmea
![]() Delphi Developer |
Thu, 06 Jul 2000 03:00:00 GMT
Re:Help on OLE Automation Objects: Properties and MethodsI have seen/used TypeLibs before, but that is not really what I am I am trying to write something comparable in Delphi, as an EXE or a Maybe I just need a better understanding of what the ObjectBrowser in If so, then how is that done? I have seen the GetTypeInfo routine, so Is there any other way? Jason QuoteScott Samet [TeamB] wrote: |
Scott Samet [TeamB
![]() Delphi Developer |
Thu, 06 Jul 2000 03:00:00 GMT
Re:Help on OLE Automation Objects: Properties and MethodsQuoteIn article <34C1C6F1.56643...@ash.net>, Jason T. Ashmead wrote: typelib, so that would have to be the way it's doing it. Quote> If so, then how is that done? I have seen the GetTypeInfo routine, so info is pretty complex and it takes both Delphi and Microsoft's OLEView utility several seconds to open and format a typelib. I also know that the documentation is poor and Borland has run into problems because MS distributes typelibs that violate their own published specs. I suggest you start by going to the MS website and checking if the distribute the source to OLEVIEW. I'm sure it's in C/C++ but it's likely to be the best "documentation" for what you're trying to do. A couple things to note: There's a "hidden" flag in the typelib, much |
Charles Savag
![]() Delphi Developer |
Thu, 06 Jul 2000 03:00:00 GMT
Re:Help on OLE Automation Objects: Properties and MethodsYou can do this at runtime assuming the object you are querying has type Basically, what you need to do is (I haven't looked up the exact syntax, so var //get dispatch interface //get type info //load type lib Then interate through the typelibrary using the functionality built into the Hope that gets you started. Charlie Savage QuoteJason T. Ashmead wrote: |
1. Returning an automation object from a method/get proc of another automation object
2. Properties and methods of OLE automation server...
3. Automation object property which returns another automation object??
4. Returning Object from OLE Automation Method?
5. How to find documentation about properties and methods of an OLE object
6. Help to know the methods to work with OLE automation
7. Delphi 2.01,Excel7.0a, OLE Error Method Workbooks not supported by OLE Object
8. HELP: Accessing The Events Of An OLE Automation Object