W
WishfulDoctor
I have a C++ (native) application that is using Automation to work with MS
Word.
I have imported the type library compatible with Word97 (msword8.olb) and
use the created .h and .cpp files. I am using
CreateDispatch(L"Word.Application") which is equivalent to the late binding
in the example given in http://support.microsoft.com/kb/242375 . It works
through Word 2003, but does not work for Word2007. What is the problem? I
understood that if I used an earlier type-library I will not have this issue
(the developer originally used MSWord.olb and found that it will not work
with older versions of Word and switched to msword8.olb ).
Word.
I have imported the type library compatible with Word97 (msword8.olb) and
use the created .h and .cpp files. I am using
CreateDispatch(L"Word.Application") which is equivalent to the late binding
in the example given in http://support.microsoft.com/kb/242375 . It works
through Word 2003, but does not work for Word2007. What is the problem? I
understood that if I used an earlier type-library I will not have this issue
(the developer originally used MSWord.olb and found that it will not work
with older versions of Word and switched to msword8.olb ).