Where can I find info on IDispatchEx()

e.e.sutton at cummins.com e.e.sutton at cummins.com
Wed Dec 8 12:25:21 EST 1999


> Also look at IDispatchEx() - targetted more for "dynamic" objects.

Where can I find info on IDispatchEx()?  I am not having much luck on
MSDN.

I want to write a COM object that can dynamically create interface
methods which appear as "properties" to a VB script user.

This is apparently being done in PerlCOM.

In an article titled
"Examing PerlCOM, Perl meets Microsoft's COM" by Mike McMillian
Dr. Dobb's Journal, January 2000, page 84

A variable named "greet" is added to the PerlCOM object and then it is
accessed from VB as a property. See example below:

Dim objPerl As Object
Set objPerl = CreateObject("PerlCOM.Script")
objPerl.EvalScript '$greet = 'Hello, world.\n';"

'Display greeting in a message box. *** It is used like a property! ***
MsgBox objPerl.greet

'Change greeting.  *** Again it is used like a property! ***
objPerl.Greet = "Welcome."


Any tips or suggestions on how to research this (I'm using C++) is much
appreciated.

Thanks in advance,

Ed Sutton
e.e.sutton at cummins.com


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list