Home > Back-end >  Delphi call pointer function problem! A pointer to function in the DLL, how in the type definition c
Delphi call pointer function problem! A pointer to function in the DLL, how in the type definition c

Time:09-21

The
Getconnectiondevice (unsigned int: vid; Unsigned int: pid; Unsigned int * No);
I am
Type defined in the function is as follows:

TGetConnectedDevices=function (vid: Uint32; Pid: Uint32; NoOfDevs: PUint32) : Integer; Stdcall;//called correctly.
.
.
.
A function call success... ,

There is now a function like this:
Void * OpenByIndex (unsigned int: vid; Unsigned int: pid; Unsigned int: index)

Return (void *) - the handle of the device,

Excuse me, if this should be in the type definition?

CodePudding user response:

Type
TOpenByIndex=function (vid and pid, the index: cardinal) : THandle; Stdcall;

CodePudding user response:

Top
  • Related