Re: LPCWSTR to CString conversion problem
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 9 Jul 2007 08:22:57 -0400
"Rohit Kumar" <RohitKumar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:95D7082C-4540-41A2-B485-E866F903C030@xxxxxxxxxxxxx
I am using xmllite methods for reading from an xml file inside my
interface method. There is a function IXmlReader::GetValue which
returns the value of the xml element. The return value is an LPCWSTR.
When i try assigning it to a CString and use the first element of
that cstring using getat(1) then it returns a garbage value.
GetAt(1) returns the second character of the string, not the first. Are
you sure the string is long enough? What exactly do you mean by "garbage
value"?
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Prev by Date: Re: Displayong Static Text In a Dialog Programmatically
- Next by Date: Re: LPCWSTR to CString conversion problem
- Previous by thread: Displayong Static Text In a Dialog Programmatically
- Next by thread: Re: LPCWSTR to CString conversion problem
- Index(es):
Relevant Pages
|