PRB: MFC ActiveX Document Servers Require Compound File Support

Last reviewed: August 7, 1997
Article ID: Q166769
The information in this article applies to:
  • The Microsoft Foundation Classes (MFC) included with: - Microsoft Visual C++, 32-bit Editions, versions 4.2, 4.2b, 5.0

SYMPTOMS

When you save an ActiveX Document from an ActiveX Document Container such as Internet Explorer or the Office Binder, an ASSERT fails at line 592 in OLEDOC1.CPP.

CAUSE

The MFC ActiveX Document Server classes require compound file support.

RESOLUTION

Add a call to EnableCompoundFile(TRUE) in the document constructor:

   CScribDoc::CScribDoc()
   {
        // ...
        EnableCompoundFile(TRUE);
   }

MORE INFORMATION

Creating a new ActiveX Document server or regular OLE embedding server in AppWizard selects compound file support by default. The assertion problem occurs if compound file support was deselected when the project was initially created.

Keywords          : AXSDKDocObjects MfcOLE
Technology        : kbMfc kbole
Version           : 4.2 4.2b 5.0
Platform          : NT WINDOWS
Issue type        : kbprb


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.