Actually this is related to ATL. I have a dll( say a.dll) having a function (say f)which has an input parameter char * . I want to call this function from an ATL object's( say obj) method( say m)having a bstr as its input parameter. I am passing a bstr from the m's method as:(pseudocodes in VB)
dim db as new obj
dim str as string
This method will load the dll a,
and call the function f, and pass the parameter of method m, "str" , to f.
My question is , will there be any problem as BSTR and char * are different datatypes? If there is problem, what should be done for explicit conversion of cast?