a3804
asked on
String conversion
I tried to write a ATL DLL, which is accessed from Basic. However, this code is not working (I try to return some CStrings to Basic):
STDMETHODIMP CCRSData::GetInfos(BSTR *pDateSaved...)
{
CComBSTR DateSaved(m_CRSInfos.DateS aved);
*pDateSaved = BSTR(DateSaved);
return S_OK;
}
STDMETHODIMP CCRSData::GetInfos(BSTR *pDateSaved...)
{
CComBSTR DateSaved(m_CRSInfos.DateS
*pDateSaved = BSTR(DateSaved);
return S_OK;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.