Home > Back-end >  Delphi VC call functions in the DLL
Delphi VC call functions in the DLL

Time:12-09

Prototype: int32 SMCOpenEth2 (struct in_addr straddr, SMCHANDLE * phandle);
Parameters:
Straddr socket structure IP address
Phandle return link id
The return value: error code
Invoke the sample: struct in_addr straddr;
Straddr. S_addr=inet_addr (" 192.168.1.11 ");
SMCOpenEth2 (straddr, & amp; Handle);
Please tell to help, thank you
The declaration and calls in Delphi? thank you

CodePudding user response:

First clear function calling conventions (such as stdcall logo)
Then the format of the first parameter is a socket address structure, there is a corresponding Delphi,
The second argument you pass a pointer to go,

CodePudding user response:


If it is vc DLL, general calling convention is cdecl; This note
  • Related