November 5th, 2002, 1:06 pm
std::wstring str(L"string I want to pass");...rVal.vt = VT_BSTR;rVal.bstrVal = ::SysAllocString(str);The L prefix tells the compiler that this is a wide/unicode string constant. If you have a char* try the USES_CONVERSION and A2OLE macros.Jens.
Last edited by
jens on November 4th, 2002, 11:00 pm, edited 1 time in total.