Home > database >  PB invokes the VC to write a DLL, VC defined parameters for char *, a call in the PB incoming parame
PB invokes the VC to write a DLL, VC defined parameters for char *, a call in the PB incoming parame

Time:09-26

PB invokes the VC to write a DLL, VC defined parameters for char *, a call in the PB incoming parameters as type string
But the DLL in VC can only read the string first, after all can't read, is this why?

CodePudding user response:

Int test (char * ipaddr, int port)

In the following declaration in the pb10.5

The public FUNCTION long test (ref string par1, int par2) LIBRARY "aaa. DLL" ALIAS FOR "test; ANSI ";

CodePudding user response:

Let's go to the post function prototype

CodePudding user response:

refer to the second floor liubocy response:
paste function prototype out

Before calling DLL must understand its prototype,
You may be the ref string ls_test may also be a ref string ls_test []

CodePudding user response:

Parameters to the ref char schar []

Obtain schar, then copy it to the string types of variables, such as:
String ls
Ls=schar
  • Related