|
-
Jun 28th, 2002, 03:01 AM
#1
Thread Starter
Lively Member
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?
They will try to steal everything you own,
It goes on and on and on...
Pain - On and On
-
Jun 28th, 2002, 09:14 PM
#2
Banned
Im not too familiar with Windows C++ but generally in the ANSI C++ language you can reallocate memory if needed.
-
Jul 10th, 2002, 06:33 PM
#3
I think there is a function called SysReallocString or something like that.
BTW, do
BSTR sRes = SysAll...
else you have a loose pointer.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|