[fpc-pascal] DLL Linking

Steve Williams stevewilliams at kromestudios.com
Wed Jun 22 05:54:31 CEST 2005

L505 wrote:
> | Note that this is not allowed on Windows XP if your application is in
> | the Program Files directory.  Applications are not allowed or should not
> | write to their application directory due to security restrictions.
> |
> | --
> | Sly
> Really? So MS encourages you to write everything to the main drive:\temp
> directory (a black hole) and not your own temp directories? This reminds me of
> the registry. Black hole mania.
> So permissions in winxp are set like this as default?? :-(

By default, every user has their own temp directory (C:\Documents and 
Settings\username\Local Settings\Temp).  This is what GetTempPath() will 
return by default, unless that user sets their TEMP environment variable 
to something else.

On Linux, the equivalent of "C:\Documents and 
Settings\username\Application Data" would be a .appname folder in the 
user's home directory.

Code by the rules and you will find that you have fewer problems and 
more people will use your applications.


This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.

More information about the fpc-pascal mailing list