Solved

convert Char * to CString

Posted on 1997-05-21
2
543 Views
Last Modified: 2011-04-14
How to convert Char * to CString ?
0
Comment
Question by:edward95
2 Comments
 
LVL 5

Accepted Solution

by:
yonat earned 0 total points
ID: 1163594
If charp is a char* that points to a valid C string, than:
CString s = charp;
will do the job.
0
 

Expert Comment

by:baraka
ID: 1163595
Nope, just wanted to be sure someone actually asked such a question.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question