Solved

convert Char * to CString

Posted on 1997-05-21
2
545 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

820 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