Re: Creating event objects

Roger I Martin PhD <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Thank you very much, Vitaly,

Hmmm, about 3000 times...get type info...

I'll be in touch and let you know how it goes.

Roger

Vitaly Shelest wrote:

>Hi Roger,
>I can give you an idea of custon interface (not Dispatchable) Event handling. Get COMDelegator OpenSource. There you will find code for intercepting function calls on VTLB. So create such class object wrapper with only one function, which is cloned to this VTLB about 3000 times. This function should have two parameters: Method Number and Argument Array. While init. this wrapper should get TypeInfo for this Event Interface. The rest you will find in COMDelegator OpenSource.
>
>Vitaly
>
>-----Original Message-----
>From: Roger I Martin PhD [mailto:[email protected]]
>Sent: Tue, July 20, 2004 3:53 PM
>To: [email protected]
>Subject: Re: [JAWIN] Creating event objects
>
>
>Morten Andersen wrote:
>
>
>
>>Hi John and Robert
>>
>>Robert Hastings wrote:
>>
>>
>>
>>>I'm afraid jawin does not currently support event sinking.
>>>
>>>
>>We actually have some event handling (although from Win32 calls?) in the
>>DemoConsoleEventHandler, we register a Java object to receive and handle
>>console events.
>>
>>
>
>Yes. I could never fully understand this example; or rather how it could
>extend to event handling in general.  It seem to need the Jawin to
>provide the native registering specific to the concole event handler.
>But I did see examples of commercial bridges doing event handling but it
>wasn't clear if it was done without native coding.
>
>
>
>>But since I, like John, have only limited COM-experience, I don't know
>>if this is something along the lines of registering COM event sinks, or
>>whether this is totally "of track". Robert can you shed some light on
>>whether this is the case?
>>
>>And, finally I am afraid the registering of the event handler is one of
>>the more undocumented features of Jawin, that probably only Stuart knows
>>the exact details of.
>>
>>Best Regards
>>Morten
>>
>>
>>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.