> 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
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
:[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
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
ot;Bavishi,
Pankaj" To: [EMAIL PROTECTED]
Subject: RE:
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
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
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
.
>
>
> -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
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
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
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
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"
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
14 matches
Mail list logo