A
Ashok Kumar K
Hi all,
Where can I get some insight on using the __hook, __unhook, event_source and
event_receiver for specifically COM events. The documentation given in MSDN
is very minimal. I have the following scenario
Server (COM event source) is written in VC++ 6.0 using ATL (event interfaces
can be either dispinterface / IDispatch based)
Client (COM event receiver) is written in VC++ 2003 using attributed
programming and unified event handling
I ran into many compilation problems for the client (C3712, "a custom
interface that fires COM events cannot inherit from IDispatch", etc).
Finally, after doing a lot of trial and errors, I am able to compile the
client. But I am not getting the events.
Also, I am trying to write an Addin in to Office applications using VC++
2003. I would like to use the unified Event handling __hook and __unhook
functions. The first problem I faced was the #import'ing the OLB file. It
looks like the new compiler does not like these OLB's when imported with
"embedded_idl". Some of the compiler errors are C3319 (propget and propput
methods), C3317, C3303 (again propget and propput), C3139 (export empty
UDT's), C3110 (again propget and propput methods).
Has anybody tried this before? Or is it too early to use unified event
handling mechanism? should we defer using __hook and __unhook till the
Service pack for VS.Net 2003 comes out?
Any recommendations please.
Thanks
Ashok Kumar K
Where can I get some insight on using the __hook, __unhook, event_source and
event_receiver for specifically COM events. The documentation given in MSDN
is very minimal. I have the following scenario
Server (COM event source) is written in VC++ 6.0 using ATL (event interfaces
can be either dispinterface / IDispatch based)
Client (COM event receiver) is written in VC++ 2003 using attributed
programming and unified event handling
I ran into many compilation problems for the client (C3712, "a custom
interface that fires COM events cannot inherit from IDispatch", etc).
Finally, after doing a lot of trial and errors, I am able to compile the
client. But I am not getting the events.
Also, I am trying to write an Addin in to Office applications using VC++
2003. I would like to use the unified Event handling __hook and __unhook
functions. The first problem I faced was the #import'ing the OLB file. It
looks like the new compiler does not like these OLB's when imported with
"embedded_idl". Some of the compiler errors are C3319 (propget and propput
methods), C3317, C3303 (again propget and propput), C3139 (export empty
UDT's), C3110 (again propget and propput methods).
Has anybody tried this before? Or is it too early to use unified event
handling mechanism? should we defer using __hook and __unhook till the
Service pack for VS.Net 2003 comes out?
Any recommendations please.
Thanks
Ashok Kumar K