Funny how I find what I'm looking for...when I'm not looking for it.
I wish I had this about a month ago :-)
Here's a great site for newbies (like me) learning about Unicode and
especially converting between it and ASCII. There are related links
at the top of the page that you should check out too. Looks like good
info...
http://www.devguy.com/fp/Tips/COM/bstr.htm
Snipped example: the following tip is something I didn't know...
Use ! (==) instead of != with CComBSTR
The following are not the same:
CComBSTR b1, b2;
if (b1 != b2) // this is wrong
{
}
if (!(b1 == b2)) // this is right
{
}
b1 != b2 compares the underlying BSTR pointers
and does not perform a string comparison.