Word97 dependant on Word2000 ?

N

Nikolai Kirsebom

In our c++/mfc application we include the type libraries for word in
order to use it in automation. On the 2nd Dec 2002 Achint Srivastava
pointed out in this newsgroup how the various type libraries should be
imported depending on target Word version.

When building for Word97 we have:

#import mso97.dll
#import vbeext1.olb
#import msword8.olb

Now - using the ObjectViewer (Visual Studio) inspecting the type
libraries in the file msword8.olb I notice two strange things. The
comment line says that the file is named 'msword9.olb', but more
seriously (maybe) the file has the statement:

importlib("VBE6EXT.OLB");

Looking inside the vbe6ext.olb I see that it contains the statement:

importlib("MSO9.dll")

which I have understood to be the Word2K version.

When compiling the project (VS 7.0) we get compilation errors
indicating the "CommandBarsPtr" is not member of object.

Could someone please explain what may be wrong. The file msword8.olb
is taken from the distribution (Office 97).

Nikolai Kirsebom
 

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