Home > database >  PB call external DLLS, parameters of structure, called an error.
PB call external DLLS, parameters of structure, called an error.

Time:10-10

External DLLS last parameter for structure, defined as follows:
Typedef struct TagData_struct {
A double value.//return point values
Long time;//return point of time, s
Int the status;//return point state
} TagData;
In pb statement Function is as follows: the Function int GetHistoryDataByTime (ref string tagname, long bytime, ref TagData tag) Library "* * *. DLL"
Pb declared in the structure of the same as the DLL
Call times wrong: Error: the Specified argument type differs from the required argument type at runtime DLL function in
Consult everybody how to solve? BBS search a lot of, also did not check to the relevant solutions,

CodePudding user response:

Do you use any tag can try out, and then judge

CodePudding user response:

Look at the pb structure
  • Related