Click to See Complete Forum and Search --> : May be a dumb question about BSTR.


Chetan
March 30th, 1999, 04:03 PM
Hello Codeguru's

This might be very dumb question for gurus like you.

I want to append one BSTR to another but don't find any API for this purpose.

Right now I wrote my own function for this purpose but I want to know is there any api for this purpose.


Expecting reply.


Thanks

Chetan

pj durai
March 30th, 1999, 06:29 PM
easiest way is to use _bstr_t class.


_bstr_t b = L"some string";

_bstr_t c = L"some other string";


_bstr_t a = b +c; // that ought to do it.