¸¶Áö¸·À¸·Î »ç¿ëµÈ µð·ºÅ丮 ÃßÀûÇϱâ 


A good app keeps track of the last directory in which the user opened or saved files. This week's tip shows you how. 
Tracking the last-used directory 
Ideally, your applications should keep track of the last directory 
in which the user opened or saved files. The InitialDir property 
specifies which directory the File dialog box will display when it 
opens. Prior to displaying a File Open or File Save dialog box, 
your application can look in the Registry for the identity of the 
directory in which a file was last opened or saved, then set the 
InitialDir property to that directory. Once the user selects a 
file, you can update the Registry information if necessary. 

Submitted by Kent Reisdorph, TurboPower Software. 
Kent is the author of Teach Yourself C++Builder in 21 Days (SAMS 
 Publishing).