-1
我希望我的IDL文件来实现,返回字符串数组的函数,所以我试了一下,如:C++ MIDL2025:期待一个类型规范“”附近
[id(2)] HRESULT GReport_Person1([out, retval] std::vector<std::string> *Result);
[id(3)] HRESULT GReport_Person2([out, retval] std::vector<BSTR> *Result);
但是这会产生错误:
MIDL2025 syntax error : expecting a type specification near "std"
但我希望它返回这个数组或std::vector<BSTR>
无论如何,请帮我解决这个问题。
谢谢!很好的答案。 :-) – Blueeyes789