Get Windows Temp directory
< Continued from page 4
thePath holds the Windows Temp directory:
~~~~~~~~~~~~~~~~~~~~~~~~~
var
lng: DWORD;
thePath: string;
begin
SetLength(thePath, MAX_PATH) ;
lng := GetTempPath(MAX_PATH, PChar(thePath)) ;
SetLength(thePath, lng) ;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~
Delphi tips navigator:
» Form gradient fill
« How to set margins in Memo
thePath holds the Windows Temp directory:
~~~~~~~~~~~~~~~~~~~~~~~~~
var
lng: DWORD;
thePath: string;
begin
SetLength(thePath, MAX_PATH) ;
lng := GetTempPath(MAX_PATH, PChar(thePath)) ;
SetLength(thePath, lng) ;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~
Delphi tips navigator:
» Form gradient fill
« How to set margins in Memo