Re: Copy to CString's internal buffer
- From: "Alexander Grigoriev" <alegr@xxxxxxxxxxxxx>
- Date: Fri, 22 Jun 2007 19:09:37 -0700
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
"David Wilkinson" <no-reply@xxxxxxxxxxxx> wrote in message
news:uLaJQ3BtHHA.1216@xxxxxxxxxxxxxxxxxxxxxxx
Joseph M. Newcomer wrote:
CString str(buffer, 20);
doesn't require the intermediate copy, and allows extraction of an
arbitrary field as I
show earlier.
Hi Joe:
Ah yes, I see that this works in VS2002 and later. In VC6, the conversion
constructor only exists for the one-parameter constructor, which requires
a NUL-terminated string.
However, I personally dislike these CString conversion constructors, and I
would never write code that depended on them. In fact I have modified my
VC6 CString headers to eliminate them (and I would do it in the later
templated versions if I could figure out how).
--
David Wilkinson
Visual C++ MVP
.
- References:
- Copy to CString's internal buffer
- From: vvf
- Re: Copy to CString's internal buffer
- From: vvf
- Re: Copy to CString's internal buffer
- From: Tom Serface
- Re: Copy to CString's internal buffer
- From: Joseph M . Newcomer
- Re: Copy to CString's internal buffer
- From: Alexander Grigoriev
- Re: Copy to CString's internal buffer
- From: Joseph M . Newcomer
- Re: Copy to CString's internal buffer
- From: David Wilkinson
- Re: Copy to CString's internal buffer
- From: Joseph M . Newcomer
- Re: Copy to CString's internal buffer
- From: David Wilkinson
- Copy to CString's internal buffer
- Prev by Date: Re: searching in a text file with a specified string and deleting the string(URGENT)
- Next by Date: Re: CString help
- Previous by thread: Re: Copy to CString's internal buffer
- Next by thread: Re: Copy to CString's internal buffer
- Index(es):
Relevant Pages
|