Converting data types...
Posted on 1999-01-19
To convert a BSTR to char type, I was told to use:
// bstrTEXT comes in through function (e.g. function( BSTR bstrTEXT ))
*charTEXT = ConvertBSTRToString(bstrTEXT);
But the compiler tells me this (am I using the right function to convert BSTR to char???):
error C2065: 'ConvertBSTRToString' : undeclared identifier
Also, when coding:
bstrSomething = "Some text...";
I get these errors during compile-time:
error C2015: too many characters in constant
error C2440: '=' : cannot convert from 'char ' to 'unsigned short *'