Подскажите пожалуйста, как можно конвертнуть строку из CComBSTR в LPCTSTR
такой код:
CComBSTR m_bstrCaption = _L"test";
LPTSTR pszText= W2T(m_bstrCaption);
выдает ошибки:
error C2065: '_lpw' : undeclared identifier
error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class ATL::CComBSTR' (or there is no acceptable conversion)
error C2065: '_convert' : undeclared identifier
На строку LPTSTR pszText= W2T(m_bstrCaption);