using ATL you can also:
#include<comutil.h>//required for _bstr_t
#include<iostream>//not required for _bstr_t
using namespace std;//not required for _bstr_t
....
//fragment of main:
_bstr_t x;
x = "hello ";
x += L"people";
cout<<(char*)x<<endl;
wcout<<(BSTR)x<<endl; Ion Filipski
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.