Einzelnen Beitrag anzeigen

gammatester

Registriert seit: 6. Dez 2005
999 Beiträge
 
#2

AW: Problem with DLL in Delphi

  Alt 21. Aug 2014, 15:52
Here you work with AnsiChar:
Delphi-Quellcode:
function DIE_scanA(pszFileName, pszOutBuffer: PAnsiChar; nOutBufferSize: Cardinal; nFlags: Cardinal): Integer; stdcall;
  external 'diedll.dllname 'DIE_scanA';
But this is not Ansi:
Delphi-Quellcode:
var
  Buffer: array [0..1023] of Char;
Try this instead
Delphi-Quellcode:
var
  Buffer: array [0..1023] of AnsiChar;
but maybe there are other problems.
  Mit Zitat antworten Zitat