-
BSTR problem
Using vc++ 6.0 I've initialized 1 bstr
After that, I put some text in it:
Code:
*sRes = SysAllocString(OLESTR("Root->Left != NULL:Root->Right != NULL"));
But here comes the tricky part.. I want to add more text into the String..
But how?
Anyone got an idea?
-
Im not too familiar with Windows C++ but generally in the ANSI C++ language you can reallocate memory if needed.
-
I think there is a function called SysReallocString or something like that.
BTW, do
BSTR sRes = SysAll...
else you have a loose pointer.