Home > Back-end >  Delphi do for events in the DLL interface
Delphi do for events in the DLL interface

Time:10-03

Masters:
I call the VB to write a standard DLL file, use the Delphi Import Component generates a. Pas file, I quoted in _DriveMain=interface (IDispatch) inside a event
Procedure RaiseSendEvent (var objConnInfo: _DriveInfo; LDataLen: Integer; Const sHex: WideString); Safecall;
Procedure RaiseDataArrivalEvent (var objConnInfo: _DriveInfo; LDataLen: Integer;
Const sHex: WideString); Safecall;
I want to quote, I wrote a procedure in their programs RaiseDataArrivalEvent (var objConnInfo: _DriveInfo; LDataLen: Integer;
Const sHex: WideString); Method, then use the dm RaiseDataArrivalEvent=RaiseDataArrivalEvent, but the software always prompt (DCC) Error). The Main pas (97) : E2035 Not enough actual parameters of Error, is this why? How should I call?

CodePudding user response:

Associated with the call order, VB and Delphi this is not the same,
  • Related