-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