
event_receiver and event_source in same class fails
If I attempt to specify both event_receiver(com) and
event_source(com) attributes for a class then the code
will fail to compile. The compiler can't find the event
handling method in the class while parsing the __hook
statement. Is this a known issue/limitation?
I work around it by using the pre-7.0 event handling
mechanism but it is inconvenient to not be able to use
both in the same class. In my case I have a data source
that sinks events from a separate data source and also
fires events on its own. I could break the code up into
subclasses but it seems like too much extra work for
simple event handling.
Thanks,
Michael Taylor, MCP - 4/4/02
DCS Corp.