the ATL class _bstr_t has an assignment operator ( operator=(const char*) ) that takes a char* argument. The assignment operator throws a _com_error, so without error handling you just do this;
_bstr_t myBstr("hello world"
char* msg = "so long for now";
myBstr = msg;
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.