Zitat von
mkinzler:
Try PAnsiChar instead of PChar in the call
I changed:
function GetPdfPageCount(filename: pchar): integer; stdcall; external 'PdfPageCount.dll';
to
function GetPdfPageCount(filename: PAnsiChar): integer; stdcall; external 'PdfPageCount.dll';
and call:
..GetPdfPageCount(PAnsiChar('C:\Progetti\Totem\file.pdf'))...
and now it works perfectly.
Really simple (stupid me).
Thanks