Help - Word automation does not work!

R

rajas

Help,

I am developing a C++ application that creates a Word document & everything
was working - when suddenly I cannot launch Word from the C++ application
any more. It started when I (foolishly I suppose) updated MSOffice (I am
running XP home, Office XP) after being reminded by my Windows update that
there was a security update for Office.
When I start Word from the Start menu it comes up fine. However I can no
longer
Now the application hangs with Server Busy message at CreateDispatch.

It appears that the following DLLs load and then nothing-
the last thing in the debug windows is:

Loaded 'C:\WINNT\system32\sxs.dll', no matching symbolic
information found.
Loaded 'C:\WINNT\system32\msi.dll', no matching symbolic
information found.

After some time, I guess it times out and I get the server busy - any amount
or retries do not fix it & of course there is no cancel button. If I stop
debugging and close my application, the task manager shows Word as a process
(not in the application) with a smaller memory footprint than it normally
shows.

Can anyone help me - I tried 'Repairing' MS Office with the install CD's,
no change. Unlike XP updates, there is nothing in the Add Remove Programs
to Undo the update. If I need to update some-other dlls - what would they
be & how would I do it? - I keep my XP current with Windows-Update (what
really started the problem with Office update).

Thanks in advance. - I am posting this in couple of different newsgroups (I
understand cross-posting is discouraged, but I do not know where the home
for this may be) & I will post a follow-up when I get help & solve this.
 
C

Cindy M -WordMVP-

Hi Rajas,

Hmmm. My best guess would be that you may not be starting the application
"Visible", right from the start? So perhaps there's a message box waiting for
user interaction? Quite a few security things were added in these last Office
updates, so my guess would be that it's one of those causing the reaction.

In VBA-speak, I would be doing Set appWd = New Word.Application. And then I'd
be activating and making it visible immediately following this, in order to
check whether there's a message box popping up.
I am developing a C++ application that creates a Word document & everything
was working - when suddenly I cannot launch Word from the C++ application
any more. It started when I (foolishly I suppose) updated MSOffice (I am
running XP home, Office XP) after being reminded by my Windows update that
there was a security update for Office.
When I start Word from the Start menu it comes up fine. However I can no
longer
Now the application hangs with Server Busy message at CreateDispatch.

It appears that the following DLLs load and then nothing-
the last thing in the debug windows is:

Loaded 'C:\WINNT\system32\sxs.dll', no matching symbolic
information found.
Loaded 'C:\WINNT\system32\msi.dll', no matching symbolic
information found.

After some time, I guess it times out and I get the server busy - any amount
or retries do not fix it & of course there is no cancel button. If I stop
debugging and close my application, the task manager shows Word as a process
(not in the application) with a smaller memory footprint than it normally
shows.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
R

rajas

Cindy
Thanks for the reply - it turned out that the problem had nothing to do with
Word - it had to do with XP compatibility kit that was turned on - for some
reason it does not work correctly in the debug mode & 'hangs'. (it was
tuned on to check for compatibility issues, and should have been turned off
after the test).
 

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