The information in this article applies to:
SUMMARYYou can trap events that are exposed by Office applications by implementing the event interface you want to catch (the "sink"), and setting up an advisory connection with the application (the "source"). MORE INFORMATIONTo set up the advisory connection, you get the server's IConnectionPointContainer and call FindConnectionPoint() with the IID of the event interface. This gives you an IConnectionPoint interface. Then call Advise() with an instance of your event interface. The server will call back through this interface when these events occur. REFERENCESFor step-by-step examples of catching events for Microsoft Word and Excel, please click the article numbers below to view the articles in the Microsoft Knowledge Base: Q183599 HOWTO: Catch Microsoft Word97 Application Events Using VC++ Q186427 HOWTO: Catch Microsoft Excel 97 Application Events Using VC++ Additional query words:
Keywords : kbVC kbVC400 kbVC500 kbVC600 kbWord kbOffice2000 |
Last Reviewed: October 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |