Hallo Mastersargon.
Zitat von
Mastersargon:
unsigned char* send(const unsigned long int* data_len, const unsigned char* data, unsigned long int* packet_len, unsigned char* packet);
Aufruf in Delphi:
FUNCTION send({CONST} VAR data_len: DWord; {CONST} data: PChar; VAR packet_len: DWord; packet: PChar): PChar cdecl; external 'test.dll' name 'send';
Versuchs mal mit folgender Deklaration.
Delphi-Quellcode:
function send(data_len: PLongInt; data: PByte;
var packet_len: LongInt; var packet: Byte): PByte; cdecl;
external 'test.dll' name 'send';
lg. Astat