共用方式為


COleStreamFile::Detach

Disassociates the stream from the object without closing the stream.

LPSTREAM Detach( );

Return Value

A pointer to the stream (IStream) that was associated with the object.

Remarks

The stream must be closed in some other fashion before the program terminates.

For more information, see IStream in the Windows SDK.

Requirements

Header: afxole.h

See Also

Reference

COleStreamFile Class

Hierarchy Chart

COleStreamFile::Attach

Other Resources

COleStreamFile Members