Help Center

AfxSaveTempFilefunction

Saves the contents of a string buffer in a temporary file.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxSaveTempFile (BYVAL pwszBuffer AS WSTRING PTR, BYREF wszExtension AS WSTRING) AS DWSTRING

Parameters

NameDescription
pwszBufferThe string buffer to save.
wszExtensionOptional. The extension of the file name without a colon (e.g. "bas"). If an empty string is passed, the function will use "tmp" as the extension.

Description

Saves the contents of a string buffer in a temporary file.

Remarks

Temporary files whose names have been created by this function are not automatically deleted. To delete these files call AfxDeleteFile.

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:4481
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures