Пётр Косаревский schreef:
The problem is that Apple's universal interfaces also include a
"round" function, which returns a real instead of an integral type.
How can one find such a thing himself without trial&error?
Some time ago I had a similar problem with "bool DeleteFile(PChar)" function in Windows
API and sysutils function "DeleteFile(string):boolean".
"Good" program:
uses windows,sysutils;
const B:shortstring='1.txt';
begin DeleteFile(B); end.
"Bad" program: // Error: PChar expected
uses sysutils,windows;
const B:shortstring='1.txt';
begin DeleteFile(B); end.
While compiler gives a hint about "true" declaration, it does not point to the
problematic unit.
Use a IDE with code tools that support find declaration.
In your case Lazarus would for example have jumped to an include file that that
contains the wrong declaration. Search include directive once or twice would have
brought you to the main unit file.
Vincent.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal