BSTR has information before the text that describes the length of the string and has not terminator so I don't think wchar_t will do it. This article describes the process about a quarter of the way down: https://msdn.microsoft.com/en-us/library/ms235631.aspx