Wednesday, April 30, 2008
Convert CComBSTR to std::string
CComBSTR myString = _T("Hello");
std::wstring myWString(myString);
std::string str(myWString.begin(),myWString.end());
str.assign(myWString.begin(),myWString.end());
std::cout
<<
str.c_str();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment