IPersistFile interface

Enables an object to be loaded from or saved to a disk file, rather than a storage object or stream. Because the information needed to open a file varies greatly from one application to another, the implementation of IPersistFile::Load on the object must also open its disk file.

Methods

The IPersistFile interface has these methods.

Method Description
IPersistFile::GetCurFile Retrieves the current name of the file associated with the object. If there is no current working file, this method retrieves the default save prompt for the object.
IPersistFile::IsDirty Determines whether an object has changed since it was last saved to its current file.
IPersistFile::Load Opens the specified file and initializes an object from the file contents.
IPersistFile::Save Saves a copy of the object to the specified file.
IPersistFile::SaveCompleted Notifies the object that it can write to its file.

Requirements

   
Windows version Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h