How to catch events?
-
Hi everybody, Does anybody know how to catch Microsoft word application events in a non MFC application (specifically WTL application) ? thanks in advance, Roozbeh
There's too much to specify in detail, but here goes... Word events are specified as an interface that you (the client that wants to receive the events) have to implement. You tell Word about the interface implementation using Word's implementation of IConnectionPointContainer and IConnectionPoint, which is made simpler if using ATL through the function AtlAdvise. These two links may help: COM Events Event Handling with ATL Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
-
There's too much to specify in detail, but here goes... Word events are specified as an interface that you (the client that wants to receive the events) have to implement. You tell Word about the interface implementation using Word's implementation of IConnectionPointContainer and IConnectionPoint, which is made simpler if using ATL through the function AtlAdvise. These two links may help: COM Events Event Handling with ATL Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'