My code is soemthing like
BSTR vb[20]; //heap alloc or _bstr_t no help
SAFEARRAY* sa = SafeArrayCreateVector(VT_BSTR, 0, 20);
long m =0;
SafeArrayPutElement(sa, &m, vb);
_exten_obj->GetData(sa); //C# DLL void GetData(string[]) in which correctly populates the string[]
//vb contains unrecognized texts; regardless of char set to unset, UNICODE or MBCS
SafeArrayGetElement(sa, &m, (void*)vb); //did not help
Any idea?