Hmmm... It's been some time since I did any COM programming but I think the
code you've posted to create a SAFEARRAY is wrong. I would do something on
the lines:
HRESULT hr = E_FAIL;
BSTR* pbstr = NULL;
SAFEARRAY* psa = ::SafeArrayCreateVector(VT_BSTR, 3);
if (NULL != psa)
{
if (SUCCEEDED(hr
Hello,
I have a problem on creating a managed object from native code. The managed
object has 4 overloaded constructors:
public MyClass() {}
public MyClass(string a) {}
public MyClass(string a, string b) {}
public MyClass(string a, string b, string c) {}
Before to create the constructor (the last