On 28.01.2012 19:45, Alexey Eromenko wrote:
> Is there are way to convert BSTR strings to standard C++ std::wstring ?

We don't use std::wstring in our code anywhere, correct.

Instead there is a custom BSTR wrapper class called Bstr, which has 
convenient conversion methods, which do COM/XPCOM compatible memory 
management.

However, the tendency in our code is to get away from Bstr, and use 
Utf8Str instead, just because it's so much easier to work with in C/C++ 
code.

Klaus


> A couple of Google answers produce code, that simply fails to compile.
> (due to dependency on "_bstr_t", or ATL library, or other such
> non-sense)
>
> BSTR strings documentation is pretty much non-existent.

_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to