This method of the IPersistFile interface saves a copy of the object into the specified file.
public void Save(String pszFileName, int fRemember);
S_OK -- The object was successfully saved.
E_FAIL -- The file was not saved.
[in] pszFileName | Points to a zero-terminated string containing the absolute path of the file to which the object should be saved. If pszFileName is NULL, the object should save its data to the current file, if there is one. |
[in] fRemember | Indicates whether the pszFileName parameter is to be used as the current working file. If TRUE, pszFileName becomes the current file and the object should clear its dirty flag after the save. If FALSE, this save operation is a Save A Copy As ... operation. In this case, the current file is unchanged and the object should not clear its dirty flag. If pszFileName is NULL, the implementation should ignore the fRemember flag. |