On 21/06/15 23:58, Jonas Maebe wrote:
On 21/06/15 22:20, patspiper wrote:
So what should be done to remedy the Windows case when $LINKLIB is used,
that is unless $LINKLIB is not to be used with Windows?
{$linklib xxx} can be useful on Windows if you have a DLL that has an
initialisation routine that you want to be run, but you're not calling
any code from it.
Then maybe the programmer's manual (section 7.1.1 Declaring external
functions or procedures) needs to be corrected as it mentions that
Procedure ProcName (Args : TPRocArgs); external ’Name’;
is equivalent to:
{$LinkLib ’Name’}
Procedure ProcName (Args : TPRocArgs);external;
But in fact $Linklib doesn't work on Windows whereas external 'name' does.
Stephano
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal