#include <comdef.h>
// this is the BSTR BSTR Bstr = ::SysAllocString(L"Hello World"); // covert to std::string _bstr_t bstr_t(Bstr); std::string str(bstr_t); // free the BSTR ::SysFreeString(Bstr); 2008-03-18 13:20
|
#include <comdef.h>
// this is the BSTR BSTR Bstr = ::SysAllocString(L"Hello World"); // covert to std::string _bstr_t bstr_t(Bstr); std::string str(bstr_t); // free the BSTR ::SysFreeString(Bstr); 2008-03-18 13:20
|