A have a DLL with a header written C:
__declspec(dllimport) int ReadData(char* port, int baudrate, unsigned char block, unsigned char nrblock, unsigned char buffer, unsigned char* message, BYTE password );
I want to use the DLL in my Delphi project, but I can't figure it out how to use it.
function ReadData( port: PChar; baudrate: integer; block, nrblock: byte; buffer: Array of byte; message_: Array of byte; password: Array of byte ): integer; cdecl; stcall; external 'dynamic.dll'
Something's wrong with this delphi function I can't use it, because it's crashing.
Please help me if you can....