问下,c++的这个函数,pb调用的时候该怎么声明函数呢
int ReadInterface(IN const long ntype,
IN const char * InputParams,
OUT char * OutParams)
我写成
Function int ReadInterface(long ntype, string InputParams, ref string outtParams) Library "***.dll";
调用的时候,
error:specified argument type differs from required argument type at runtime in dll function readinterface (invalid stack pointer on rreturn from function call)
但是跟踪程序,能看见 outparams 已经有正确的值了