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[64],
                                      unsigned char* message,
                                      BYTE password[6]

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....
Thank you.

9 Years
Discussion Span
Last Post by House_of_Dexter
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.