Advertisement

07.18.2004 at 03:51AM PDT, ID: 21062532
[x]
Attachment Details

convert Cstring to char *

Asked by sutejok in Windows MFC Programming

Tags: cstring, char, convert

Hi,

I use this method to convert CString to char*

CString data;
const char* data_char = (LPCTSTR) data;

but this method works only if i use const char*. This means i cant manipulate it rite?

how do i make it into char * instead of const char* ?

or, can someone suggest other method?

thx

Start Free Trial
[+][-]07.18.2004 at 04:06AM PDT, ID: 11577514

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows MFC Programming
Tags: cstring, char, convert
Sign Up Now!
Solution Provided By: lemmeC
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.18.2004 at 04:22AM PDT, ID: 11577549

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2004 at 04:31AM PDT, ID: 11577563

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2004 at 04:39AM PDT, ID: 11577579

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2004 at 05:01AM PDT, ID: 11577624

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2004 at 05:13AM PDT, ID: 11577645

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2004 at 05:34AM PDT, ID: 11577682

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32