I want to call a .NET method through .Invoke with a char[] parameter:
StringBuilder.Insert(int index, char[] value)
I reasoned that from C++, I should pass a safearray of VT_UI2, with variant type VT_ARRAY+VT_UI2, and that would be marshaled to a char[]. But I get an "incorrect parameter" error. Any recommendations?
Thanks