Lisp HUG Maillist Archive

COM DispInterface/Event handler question

Hello,

I'm trying to communicate with another application through COM.  The
application's COM interface implements events though a DispInterface.  In
loading the typelib file, LW generates the following:

....
;;   Coclass FOOCtl as F-O-O-Ctl
;;   Interface IFOOCtl as I-F-O-O-CTL
;;     property reader FooActive as GET-FOO-ACTIVE
....
;;   DispInterface _IFooEvents as _I-FOO-EVENTS
;;     method RecordComplete as RECORD-COMPLETE
....

I can make an instance of F-O-O-Ctl, and do a query-interface to get the
interface I-F-O-O-CTL from which I can invoke Get-Foo-Active, but I cannot
get my hands on _I-Foo-Events.

Also, Record-Complete is an event (method) that I wish to handle.  I can
find no documentation or examples for how COM event handlers should work.
I would guess that I would define a function that I hand the
Record-Complete method, but I have no indication of whether that should be
a regular Lisp function or a foreign function.

I'm currently using LW4.2.7

Thanks,

R



CL-HTTP 70.182pre

We have a new prerelease of CL-HTTP (Web server, client, caching proxy, web walker, and more)
that has been tuned for LispWorks,  and runs nicely under Windows, Mac OSX, and UNIX. 
We would appreciate any testing and feedback before the final release issues within a couple of weeks. 

LispWorks Release Notes: <http://wilson.ai.mit.edu/cl-http/sources/lw/-read-me-.text>

Download here: <ftp://ftp.ai.mit.edu/pub/users/jcma/cl-http/devo/cl-http-70-182-pre.tar.gz>

Documentation (devo): <http://wilson.ai.mit.edu/cl-http/frame.html>

Bug reports and commentary: bug-lw-cl-http@[nospam]ai.mit.edu


Re: COM DispInterface/Event handler question

Unable to parse email body. Email id is 1419

Updated at: 2020-12-10 08:59 UTC