S
Shashi
How do I debug my Word COM addin when MS Word is kicked off in the background
by another application. The addin is a DLL implementation of the
IDTExtensibility2 interface, and is written in C++ in VS 2003.
Here are the scenarios I need to debug:
a) Word launched in background by MS Outlook when user selects Word as editor.
b) Word launched in background when an embedded Word document (in a document
of another application) is activated in place or in a separate window.
c) Word launched in foreground when linked Word document (host document
belongs to another app) is activated.
I have a breakpoint in OnConnection and have set the "host" app (i.e. the
app that launches Word) as the app to be debugged. The breakpoint is never
hit.
I have also tried inserting the statement __asm int 3 in OnConnection. I
have used this successfully in the past with other applications kicked off in
the background - it would prompt me to kick off a debugger which would then
break at the _-asm statement. But for some reason, it doesn't work in the
case of the Word addin.
Any ideas?
Thanks,
Shashi
by another application. The addin is a DLL implementation of the
IDTExtensibility2 interface, and is written in C++ in VS 2003.
Here are the scenarios I need to debug:
a) Word launched in background by MS Outlook when user selects Word as editor.
b) Word launched in background when an embedded Word document (in a document
of another application) is activated in place or in a separate window.
c) Word launched in foreground when linked Word document (host document
belongs to another app) is activated.
I have a breakpoint in OnConnection and have set the "host" app (i.e. the
app that launches Word) as the app to be debugged. The breakpoint is never
hit.
I have also tried inserting the statement __asm int 3 in OnConnection. I
have used this successfully in the past with other applications kicked off in
the background - it would prompt me to kick off a debugger which would then
break at the _-asm statement. But for some reason, it doesn't work in the
case of the Word addin.
Any ideas?
Thanks,
Shashi