Re: EuCOM : Attn Matt : String Return Value
Bernie Ryan wrote:
>
> Matt Lewis wrote:
> >
> >
> > Again, I can't explain the behavior...
> >
>
> Matt:
>
> I'am confused by your alloc_bstr() in unicode.ew file
> Here you call the ansi_to_unicode() and in that function you
> add two extra bytes then when you peek you ignore them
> and return just the string in a sequence.
Yeah, all I'm concerned about is the actual data, not the null terminator.
> str = ansi_to_unicode( str ) & 0
>
> But on the return of the unicode sequence you are just appending
> a single NULL.
Yeah, there should probably be two nulls appended (that's what you're
asking, right?). I'm not sure why I didn't do that. It's never been
a problem, though.
Matt
|
Not Categorized, Please Help
|
|