From C# program, I am calling VC++ function which has BSTR as input parameter. I am not getting any return value. My c# application crashes.
C# : SampleCS,
var value = object.GetValue(10, "TEST");
VC++ : SampleCPP,
GetValue(long index, BSTR key, double * Value) { CString str = key; .. .. }
Any idea if I am missing anything or doing anything wrong?
Note : If I call the GetValue function of VC++ from VB6 then it works properly.