Onega

a lot of VC++ posts, a few C# posts, and some miscellaneous stuff

Tuesday, October 10, 2006

output _bstr_t to std::ostream


std::basic_ostream<TCHAR>& operator<<(std::basic_ostream<TCHAR>& ss,
_bstr_t& v)
{
if( v.length() )
ss << (LPCTSTR)v;
return ss;
}

0 Comments:

Post a Comment

<< Home