Link to home
Start Free TrialLog in
Avatar of cophi
cophi

asked on

Alternative To CComBSTR



I'm basically trying to do this....

i->name = CComBSTR((char *)name);

Without using the CComBSTR method because when I use it with Microsoft Application Verifier it's giving me an error.  So I need another way around it....
Avatar of AlexFM
AlexFM

Try _bstr_t wrapper. Or use SysAllocString API, without any wrappers.
Avatar of cophi

ASKER

Ok... Should I be using the Detach or CopyTo functions if I'm passing the i pointer(i->name) into another function.  
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial