Re: SysAllocString

2002-03-11 Thread Hal DeVore
> On Mon, 11 Mar 2002, "James" == Murphy, James wrote: James> ATL CComBSTR class or the MFC CString class James> they manage much of this for you. Or the ATL/WTL CString class. But you still have to understand the underlying semantics or it's easy to create memory leaks and/or access

RE: SysAllocString

2002-03-11 Thread Murphy, James
09, 2002 1:47 PM > To: [EMAIL PROTECTED] > Subject: RE: SysAllocString > > > Thanks a lot..works great. > What does sysfreestring(bstr) do? > > -Original Message- > From: David N Bertoni/Cambridge/IBM > [mailto:[EMAIL PROTECTED]] > Sent: Friday, Marc

RE: SysAllocString

2002-03-09 Thread Bavishi, Pankaj
:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 10:03 PM To: [EMAIL PROTECTED] Subject: RE: SysAllocString Since DOMString stores Unicode characters encoded in UTF-16, there's no need to transcode to do what you want. Just use DOMString::rawBuffer() to get the pointer, and go from

RE: SysAllocString

2002-03-09 Thread Bavishi, Pankaj
Thanks a lot..works great. What does sysfreestring(bstr) do? -Original Message- From: David N Bertoni/Cambridge/IBM [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 10:03 PM To: [EMAIL PROTECTED] Subject: RE: SysAllocString Since DOMString stores Unicode characters encoded in

RE: SysAllocString

2002-03-08 Thread David N Bertoni/Cambridge/IBM
ot;Bavishi, Pankaj" To: [EMAIL PROTECTED] Subject: RE:

RE: SysAllocString

2002-03-08 Thread Bavishi, Pankaj
IL PROTECTED]] Sent: Friday, March 08, 2002 7:30 PM To: '[EMAIL PROTECTED]' Subject: RE: SysAllocString Be careful when using rawBuffer(). The documentation says that its not always guranteed to be null terminated ;) Bhushan -Original Message- From: Samar Lotia [mailto:[EMAIL PROT

RE: SysAllocString

2002-03-08 Thread Bhushan Khanal
Be careful when using rawBuffer(). The documentation says that its not always guranteed to be null terminated ;) Bhushan -Original Message- From: Samar Lotia [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 4:13 PM To: '[EMAIL PROTECTED]' Subject: RE: SysAllocString

RE: SysAllocString

2002-03-08 Thread Samar Lotia
PROTECTED]] Sent: Friday, March 08, 2002 18:06 To: [EMAIL PROTECTED] Subject: RE: SysAllocString i assume you are doing this in Visual DevilStudio. open up the documentation and search for wctombs() and it's brethren there is a bunch of functions that convert char strings to wchar strings and

RE: SysAllocString

2002-03-08 Thread John Utz
. > > > -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 w

RE: SysAllocString

2002-03-08 Thread Bavishi, Pankaj
Dave, Thanks a lot. But I am unable to use CString in my VC++ proj. It says undecl identifier. Do I need to include any files? -Original Message- From: Dave Connet [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 6:52 PM To: '[EMAIL PROTECTED]' Subject: RE: SysAlloc

RE: SysAllocString

2002-03-08 Thread Dave Connet
me()).transcode()); CString str(vna2); delete [] vna2; BSTR bstr = str.SysAllocString(); Dave Connet > -Original Message- > From: Bavishi, Pankaj [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 08, 2002 3:39 PM > To: [EMAIL PROTECTED] > Subject: RE: SysAllocString > > &g

RE: SysAllocString

2002-03-08 Thread Bavishi, Pankaj
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"He

RE: SysAllocString

2002-03-08 Thread Bavishi, Pankaj
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"

Re: SysAllocString

2002-03-08 Thread John Utz
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