For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > February 2006 > RE: How to convert CString to char- please help me!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: How to convert CString to char- please help me!
Jeff Lynn

2006-02-22, 9:57 pm

If you just to read the character, you can use the following access:

CString strTemp;
strTemp = "abcde";
if (strTemp[2] == 'c')
// yes, a match

JML

"Pawel Kozlowski" wrote:

> Please help - I need to have access to every character in CString variable
> - how can I do this?
>
> --
> ['-'] ['-'] ['-'] ['-'] ['-'] ['-'] ['-'] ['-'] ['-']
>
> Pablo 'Diablo' Kozlowski |\ /|
> [- -]
> Tel: +48 607 98 38 68
>
> ['-'] ['-'] ['-'] ['-'] ['-'] ['-'] ['-'] ['-'] ['-']
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com