Home > database >  Pb12 DLL function call external problems
Pb12 DLL function call external problems

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:

https://bbs.csdn.net/topics/200028452 this post also saw, similar to my question
  • Related