正确得应该是这样
void CServiceModule::testGet(int i, BSTR *bstrOut)
{
USES_CONVERSION;
m_tempiter = m_temp.find(i);
if (m_tempiter != m_temp.end())
{
BSTR tempBstr= T2BSTR((*m_tempiter).second.c_str());
*bstrOut = tempBstr;
}
}
void CServiceModule::testGet(int i, BSTR *bstrOut)
{
USES_CONVERSION;
m_tempiter = m_temp.find(i);
if (m_tempiter != m_temp.end())
{
BSTR tempBstr= T2BSTR((*m_tempiter).second.c_str());
*bstrOut = tempBstr;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货