The information in this article applies to:
SYMPTOMS
Traditionally, clients that support Object Linking and Embedding (OLE) can use both the TypeLib key and Version key in the registry (under the CLSID for an embeddable object) to locate the type library that describes the object and its methods. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONThe Word 2000 type library is an enhanced version of the 8.0 type library that shipped with Word 97. It has a version number of 8.1, and its location can be found in the registry under the key:
However, the Word Document object lists the TypeLib and Version as:
So, if you use these keys to to locate the type library in the registry, and/or use these keys to call the LoadRegTypeLib API, it will fail to find the library since the code will be asking for a non-existent registry key:
Clients are advised to handle any missing entry in the registry as an unregistered type library. To get the type information for an OLE object that is not registered in the type library, clients can create an instance of the object and ask for its ITypeInfo using IDispatch::GetTypeInfo() or IProvideClassInfo::GetClassInfo().
Additional query words: OLE2 TypeInfo
Keywords : kbole kbWord kbGrpDSO kbword2000 |
Last Reviewed: January 12, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |