Home > Back-end >  C # call DLL conversion Delphi call DLL (the memory read/write error)
C # call DLL conversion Delphi call DLL (the memory read/write error)

Time:10-02

C #
 
[DllImport (dll_name, EntryPoint="OPDLLName")]
Public static extern int byid (IntPtr op, int num, int [] id, int [] time, short [] status, double [] value, int [] errors).

Delphi
 
The function byid (op: THandle; Num: Integer; Var id: an array OF Integer; Var time: an array OF Integer; Var status: an array OF Byte; Var value: an array OF Double; Var errors: an array OF Integer) : Integer; Stdcall; External 'OPDLLName';

Delphi calls to access the address wrong, could you tell me where to write it?

CodePudding user response:

C
Int byid (OpenPlant op, int num, int * id, int * time, short * status,
Double * value, int * errors)
  • Related