You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Bavishi, Pankaj" <PA...@ca.com> on 2002/03/09 00:13:19 UTC
SysAllocString
When I use:
BSTR bstr=SysAllocString(L"Hello");
It works fine
But I can't do:
Char* str ="Hello";
BSTR bstr=SysAllocString(str);
Why? Could you please suggest me the Solution.
This is the process to convert DOMString to BSTR>
Thanks
pankaj
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: SysAllocString
Posted by John Utz <ut...@singingfish.com>.
this is because the L makes it a wide string
On Fri, 8 Mar 2002, Bavishi, Pankaj wrote:
> When I use:
> BSTR bstr=SysAllocString(L"Hello");
> It works fine
> But I can't do:
> Char* str ="Hello";
WCHAR* wstr = L"Hello";
> BSTR bstr=SysAllocString(str);
>
> Why? Could you please suggest me the Solution.
> This is the process to convert DOMString to BSTR>
> Thanks
> pankaj
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org