Quote Originally Posted by Codeplug View Post
If you know that the first character is a simple ASCII value (in the range of 0x00-0x1F), then you could simply use:
Code:
char c = static_cast<char>(*code.m_str);
gg
I don't have my crystal ball here with me (I am at work), but I am pretty sure OP doesn't just want one character from that BSTR.
The issue is that BSTR is a pointer to WCHAR, so a conversion (like W2A) is needed.