1. Computing

Get Windows Temp directory

From , former About.com Guide

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

©2013 About.com. All rights reserved.