Partager via


CAtlTemporaryFile::Flush

Call this method to force any data remaining in the file buffer to be written to the temporary file.

HRESULT Flush( ) throw( );

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

Similar to CAtlTemporaryFile::HandsOff, except that the file is not closed.

Example

See the example for CAtlTemporaryFile::CAtlTemporaryFile.

Requirements

Header: atlfile.h

See Also

Reference

CAtlTemporaryFile Class

Other Resources

CAtlTemporaryFile Members