Dump info on COM objects from with the DE [message #49834] |
Wed, 16 August 2006 16:05 |
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
|
|
|