How to use c++ to write Extension to listen to document open or save events

Discussion created by ts_chen on Jun 15, 2013
Latest reply on Jun 15, 2013 by ts_chen
I want to listen to open mxd file event in arcmap extension. I find a interface:IDocumentEvents, but I don't know how to use it in C++ and What is the listener for IDocumentEvents.