BSTR / LPCSTR question
Posted on 2001-08-21
I am expermenting with writing COM components using ATL COM wizard. Now I have one user defined function in my ActiveX Server component.
STDMETHODIMP Cdeers::fnDeersdll(BSTR argv, BSTR *returned_record)
Now, I would like to use Strlen function call on "argv" parameter in my function, but it won't allow me. I need to convert it into a regular string so that I use associated string function calls. Similarly, I need to convert a "LPCSTR" type to "BSTR *", how do I do it? Thanks.