bstr-t

Converting CComBSTR to _bstr_t with fcopy as false

I believe the following causes a memory access violation error as the false parameter (fcopy) causes the memory to be released for the CComBSTR: CComBSTR myCComBSTR; string strMyCComBSTR = string(_bstr_t(myCComBSTR, false)); However, I'm not quite sure why this is as the MSDN documentation says the following about fcopy: If false,...