multiple instances of winword.exe

L

Linny

Hi,
I am programming for Automation of MS Word XP, in C++.
My application which runs as a background process is concerned with
getting the active Word document and interacting with it.

But whenever I use CoCreateInstance for getting an object of the
Word.Application, another instance of winword.exe is created apart from
the instance of word which is already active and in focus and
I get a pointer to that applications IDispatch interface rather than
the existing one.

I am not able to understand how to get control of the already existing
word app object. Please help me out.

regards
Linny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top