comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Dump info on COM objects from with the DE
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Dump info on COM objects from with the DE [message #49834] Wed, 16 August 2006 16:05
abraham is currently offline  abraham
Messages: 7
Registered: May 1995
Junior Member
I just added a library called DispatchDump to the ITTVIS code contrib
site. DispatchDump offers three routines for displaying information
about COM objects and COM errors.

Routines/Usage:

disptype, obj
dispdump, obj
GetLastCOMError

disptype displays the type of the COM object.
dispdump displays the type of the COM object and all of its
methods/properties available through its IDispatch interface. It also
displays parameter attributes including their default values, if
applicable.
GetLastCOMError displays the last COM error, if available.


Here is a sample output:

IDL> dispdump, wkbk
ObjType: Workbooks
getprop: Workbook* = _Default()
getprop: Object* = _NewEnum()
func: Workbook* = Add([in, optional] VARIANT Template)
getprop: Application* = Application()
func: Boolean = CanCheckOut([in] String Filename)
method: CheckOut([in] String Filename)
method: Close()
getprop: Long = Count()
getprop: XlCreator = Creator()
getprop: Workbook* = Item()
func: Workbook* = Open([in] String Filename, [in, optional] VARIANT
UpdateLinks,
func: Workbook* = OpenDatabase([in] String Filename, [in, optional]
VARIANT CommandText,
method: OpenText([in] String Filename, [in, optional] VARIANT Origin,
[in, optional] VARIANT StartRow, [in, optional] VARIANT DataType, [in,
optional, defaultvalue(1)] XlTextQualifier TextQualifier,
func: Workbook* = OpenXML([in] String Filename, [in, optional]
VARIANT Stylesheets, [in, optional] VARIANT LoadOption)
getprop: Object* = Parent()


Here's a quick link to the library:
http://www.ittvis.com/codebank/search.asp?FID=446


Cheers,
Abraham
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Reads Excel 2003 Spreedsheet Data
Next Topic: Re: Dump info on COM objects from with the DE

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 08:50:31 PDT 2025

Total time taken to generate the page: 0.79974 seconds