I am trying to automate Word 2002 from C++ using #import.

Some of the types used as return types in methods in the Word typ lib are defined in the office type lib. For instance the type answerwizard and commandbars are used in the word type lib, but defined in the office type lib.

With this in mind, the app importing the word type lib will not compile because it doesn't know about the type 'commandbars'. However, it does know about the type 'answerwizard'. I am not sure why the app recognizes some of the types from the office type lib and it doesn't recognize other types.