I have c++ code that has a parameter like this:
STDMETHODIMP TVinaImpl::test(BSTR Param1)
{
try
{
Param1=(L"test1");
}
catch(Exception &e)
{
return Error(e.Message.c_str(), IID_IVina);
}
return S_OK;
}
I use c++ builder:

When I call this com dll function in c# it shows me the error:
IntPtr a = new IntPtr();
vina.test(a);
it is null and did not get the value.
How can I pass variable from C# to c++ com and pass back it?