Ok, I think I follow you on the return value code, I am trying something like this:
As for passing the function the BSTR that it wants when all I have is the wstring, I am still at a loss.Code:SysFreeString(szBuffer); BSTR temp; temp = SysAllocString(returnValue.c_str()); szBuffer = temp;




Reply With Quote