COleDocument::EnableCompoundFile

Call this function if you want to store the document using the compound-file format.

void EnableCompoundFile( 
   BOOL bEnable = TRUE  
);

Parameters

  • bEnable
    Specifies whether compound file support is enabled or disabled.

Remarks

This is also called structured storage. You typically call this function from the constructor of your COleDocument-derived class. For more information about compound documents, see the article Containers: Compound Files..

If you do not call this member function, documents will be stored in a nonstructured ("flat") file format.

After compound file support is enabled or disabled for a document, the setting should not be changed during the document's lifetime.

Requirements

Header: afxole.h

See Also

Reference

COleDocument Class

Hierarchy Chart

COleClientItem Class