So how should I do it? I tried: BSTR bstr=SysAllocString((WCHAR*)str);etc. I have to get str and not "hello" into the SysAllocString function. Please help. Thanks
-----Original Message----- From: John Utz [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 6:32 PM To: [EMAIL PROTECTED] Subject: Re: SysAllocString 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
