**DONOTDELETE**
(Lurker)
2001-04-17 06:12 AM
Method to handle 'Events'

Some COM components send out Events when an some action has taken place or some pre-defined criteria was met. Could we get a method to respond to these?

something like:

;...

HandleEvent ( $objSomeApp, "AttachmentAdd", AttachmentAdded )

;...

function AttachmentAdded ( $objAttachment )
;...do something with the attachment...
endfunction

;...

------------------
Have a good one,
-Ben

"Its funny when you stop doing things not because they're wrong, but because you might get caught." - Unknown

Bonji
(Starting to like KiXtart)
2004-04-29 05:29 PM
Re: Method to handle 'Events'

This would make KiXtart a much more flexible tool. An example (that I would love to see realized) is writing custom network apps. I'm writing a KiXtart/Kixforms application that is my own implementation of an IM program for work and it would be so much more powerful if it could truly be client/server and work over a network protocol.

I've had limited success with sockets in KiX, but without the COM events most of the functionality is hard to make work.

By the way, the poster above is not me.

-Ben
http://www.rgcweb.org/kix


Chris S.
(MM club member)
2004-04-29 09:13 PM
Re: Method to handle 'Events'

I agree. There are a lot of COM objects that support events that it would be nice to use in KiX and KiXforms.

Sealeopard
(KiX Master)
2004-05-07 06:43 PM
Re: Method to handle 'Events'

You can always set up event sinks for COM objects. See MSDN for documentation on "event sinks".