FIX: Binder95 Does Not Show an MFC DocObject Server Icon (160909)
The information in this article applies to:
- Microsoft Visual C++ 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q160909 SYMPTOMS
Starting with Visual C++ 4.2, MFC provides support for creating
Document Object (DocObject) Servers. The Binder application that comes
with Microsoft Office '95 is a DocObject container. When you insert a
DocObject server created by Visual C++ into the Binder, the defined icon
for the document may not show up as expected.
CAUSE
The Binder application that comes with Microsoft Office '95 searches the
registry for the CLSID of the DocObject server looking for the
DefaultExtension key. It expects a certain format for this key to
successfully display the correct icon. The MFC
COleTemplateServer::UpdateRegistry() function does not register the
information in this format.
RESOLUTION
The resolution involves changing the DefaultExtension key to the format
that Binder expects after UpdateRegistry() is called. The sample code below
demonstrates how this can be done. The code that accomplishes this is
copied almost verbatim from the source code of
COleTemplateServer::UpdateRegistry().
STATUS
This problem was corrected in Visual C++ version 6.0 for Windows
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbActiveDocs kbBug kbfix kbNoUpdate kbRegistry kbVC600fix KB160909 |
---|
|