well, for example if one wants to have a SaveDialog or OpenDialog default to the users My Documents folder (instead of the program's installation folder, one can hard-code the InitialDir property to '%HOMEDRIVE%%HOMEPATH%My Documents'. No call of any kind is made.

[EMAIL PROTECTED] wrote:

<for some purposes, calling the API may be overkill (for example, the default value for a SaveDialog1.InitialDir) compared to some of the system variables like %HOMEDRIVE% and %HOMEPATH%.>

Huh? What's the benefit of calling GetEnvironmentVariable over calling 
SHGetSpecialFolder?

Peter Laman
Senior Software Engineer
Lance ICT Group
Roermond, the Netherlands
http://www.lance-safety.com

----
----

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to