Event ID: 10003

xiaoxiao2021-03-06  40

BUG: Word 2000 Version Key Doesn't Match ITS Type Library Version

Article ID: 249626Last Review: March 14, 2001Revision: 1.0

This Article Was Previously Published Under Q249626

On this Page

SymptomsStatusmore Information

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.

In Word 2000, the value for the Version key does not match the version number of its type library. Consequently, clients that rely on this behavior may fail to identify the correct type library for Word 2000 when using the registry.

STATUS

Microsoft Has Confirmed That this is a bug in the Microsoft Products That Are listed at the beginning.

More information

The Word 2000 Type Library IS An Enhanced Version of The 8.0 Type Library That Shipped Word 97. IT Has A Version Number of 8.1, And ITS Location Can Be Found in The Registry Under The Key:

HKEY_CLASS_ROOT / TYPELIB / {00020905-0000-0000-C000-000000000046} /8.1

However, The Word Document Object Lists The Typelib and Version As:

HKEY_CLASS_ROOT / CLSID / {00020906-0000-0000-C000-000000000046}

...

TYPELIB = "{00020905-0000-0000-c000-000000000046}"

Version = "9"

...

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:

HKEY_CLASS_ROOT / TYPELIB / {00020905-0000-0000-C000-0000000046} / 9

转载请注明原文地址:https://www.9cbs.com/read-70699.html

New Post(0)