I've got a pair of CComBSTR's and I'd like to character by character copying, but when I do it the way I would with regular arrays the resulting variable is garbage. Here's an example:
CComBSTR one, two;
I've also tried: two[k]=one[i];
The reason for this is I need to do some string substitutions from one string to the other. The append operator and function of CComBSTR doesn't seem to want cooperate with me. I've tried:
and when I print the variable I get a weird character following Hello (a box).
Can anyone help me out with a couple of quick eamples of how this thing works?