>I'm looking for any method that can to receive a CString object as parametr
>and
>return a pointer of BYTE* type to the character string that are contained
>into the
>CString object.
As I said, have a look at GetBuffer & ReleaseBuffer.
Dave

Signature
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Igor Natachanny - 05 Sep 2005 12:08 GMT
Thanks but it isn't help me. GetString metod is the solution. Thanks
> >I'm looking for any method that can to receive a CString object as
> >parametr
[quoted text clipped - 6 lines]
>
> Dave
David Lowndes - 05 Sep 2005 14:16 GMT
>Thanks but it isn't help me. GetString metod is the solution. Thanks
Are you sure?
You wanted a BYTE * (I presumed you wanted a buffer you could change).
Note that GetString returns a const pointer, and the documentation
says:
"The returned PCXSTR pointer is const and does not allow direct
modification of CSimpleStringT contents"
Dave

Signature
MVP VC++ FAQ: http://www.mvps.org/vcfaq