I am very new with C++. I created my C# DLL. I created Managed C++ DLL and reference it in my C# project. I want to return from C# dll a string value in a char*
Problem is, I can't convert CComBSTR
to BSTR
?
UINT CHandler::GetData( UINT idx, char* lName)
{
HRESULT hRes= m_p->GetData(idx, CComBSTR(lName));
}
Error: Fehler by CComBSTR(lNmae): 977 IntelliSense: It is no possible conversion of ""ATL::CComBSTR"" in ""BSTR *"" available.
My C# function has second Parameter with type BSTR*