C++builder Tokyo 调用com 不正确的变量类型

tt.OleFunction("interface_call","MS01",&errorCode,&errorMsg);

加L或者WideString 引起来就可以了,注意不是String,直接写的字符串为char*,需要wchar*

tt.OleFunction("interface_call",L"01",&errorCode,&errorMsg);

tt.OleFunction("interface_call",WideString("01"),&errorCode,&errorMsg);

参数返回

WideString outXml,jylsh,jyyzm,errorMsg;

04-14 22:50