How to convert char * to BSTR? Use _bstr_t: _bstr_t bstrt(buffer); Here is the holy grail of string conversion articles