401980
asked on
Convert BSTR to LPTSTR
How do I convert from BSTR that are use with ATL to LPTSTR
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
BSTR is nothing but a typedef of OLECHAR. OLECHAR is nothing but a #def of WCHAR. This is nothing but LPCTSTR if seen properly. Further down if you use the famous API , MultiByteToWideChar()the output is a LPCSTR.
ASKER