SteveBrett
Programmer
I have a com wrapper that accepts a pointer to a BSTR as shown below in the code snippet:
conn.SendMsg((LPCSTR)message);
BSTR * recvd = 0;
conn.RecvMsg(recvd);
i need to get the value of recvd but when i run the program it is never naything but 0.
Is this the right way to call a function with a bstr out parameter ?
The dll that xontains the conn class works ok when used with c# via interop so i'm pretty sure it's working ok. i just can't seem to get it to work in c++
many thanks
conn.SendMsg((LPCSTR)message);
BSTR * recvd = 0;
conn.RecvMsg(recvd);
i need to get the value of recvd but when i run the program it is never naything but 0.
Is this the right way to call a function with a bstr out parameter ?
The dll that xontains the conn class works ok when used with c# via interop so i'm pretty sure it's working ok. i just can't seem to get it to work in c++
many thanks