|
Microsoft Word Event handling help...
I am trying to capture events from a running instance of Microsoft Word. If I could do this using MFC libraries, this would be a walk in the park. However, I HAVE to do this using straight C++ without the help of MFC libraries what-so-ever.
I have done a lot of reading on this topic and have tried to implement this event handling in a VC++ console application. I understand that you need to have event sinks to handle these events and that the COM object has to support the interface that the client application is exposing. The problem I have, is that in all the examples I have found on the web, the developers have created their own COM object and have a client that talks to that. What I haven't been able to find, is a straight forward example of how to make a connection to any of the Microsoft Office applications using the Adise method. Every time I try it, it fails.
Could anyone help me out here? I just need a basic explanation of how to set up this connection, or better yet, some very basic source on how to do this.
Any help would be massively appreciated!
|