你如何将一个std::string
转换为BSTR*
?
STDMETHODIMP CMyRESTApp::rest(BSTR data, BSTR* restr)
{
RESTClient restclient;
RESTClient::response resp = restclient.get(data);
Log("Response Status code: %s", resp.code);
Log("Response Body: %s", resp.body);
*restr = // here
return S_OK;
}
我需要转换resp.body
,然后将其返回到这里的*restr
。
BSTR*
是什么?请标记您正在使用的库。 - Lightness Races in Orbit