In my project, I created a Word Add In to monitor events from Application and CommandButton objects. Before it works, I have to set the event listeners. At first, I tried to set the listeners in a AutoExec macro. It works if I manually load the add in from Word menu. But if I load the add in from a C++ program, the AutoExec is not called.
Can any one tell me how event listeners are initialized in a Word add in except the AutoExec macro?
Thanx