Wiebe@CARYA wrote:
>>And they are supposed to be allocated and deallocated by the
>>SysAllocString() and friends functions. Failing to do so may result in
>>crashes as the called function may actually attempt to resize a string
>>with these functions and that would miserably fail if they were not
>>allocated with the same functions.
>>
>>Rolf Kalbermatter
>
>
> So all he has to do is use SysAllocStringLen to allocate a string, and pass
> the resulting BSTR to the function?
I haven't tried this but in principle that is the idea. There are of
course still some things to investigate. Such as if the prepended length
is the length of the buffer or the length of the string in the buffer.
If it is the first then how is the end of string in
dicated, probably a 0
char?
You see there are some issues to investigate but with a little trial and
error that could be resolved.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390