Click here to Skip to main content
15,923,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: char* to CString Pin
Hamid_RT14-Jun-06 19:15
Hamid_RT14-Jun-06 19:15 
GeneralRe: char* to CString Pin
ThatsAlok14-Jun-06 18:22
ThatsAlok14-Jun-06 18:22 
GeneralRe: char* to CString Pin
Hamid_RT14-Jun-06 19:18
Hamid_RT14-Jun-06 19:18 
GeneralRe: char* to CString Pin
ThatsAlok14-Jun-06 19:28
ThatsAlok14-Jun-06 19:28 
GeneralRe: char* to CString Pin
Hamid_RT14-Jun-06 19:39
Hamid_RT14-Jun-06 19:39 
GeneralRe: char* to CString Pin
John R. Shaw14-Jun-06 1:49
John R. Shaw14-Jun-06 1:49 
GeneralRe: char* to CString Pin
Eytukan14-Jun-06 1:55
Eytukan14-Jun-06 1:55 
GeneralRe: char* to CString Pin
John R. Shaw14-Jun-06 2:16
John R. Shaw14-Jun-06 2:16 
I am now lost, becuase he modified the post that started this line of conversation. It now duplicates my original answer to the original posters quesion.

But yah, you are correct that a strcpy() or equivalent would be required in that case. Although he originally was allocating it with "new (char)" and not "new char[10]", but since the original post does not exist any more the point is mot (or whatever).

INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
AnswerRe: char* to CString Pin
Eytukan14-Jun-06 2:21
Eytukan14-Jun-06 2:21 
GeneralRe: char* to CString Pin
John R. Shaw14-Jun-06 2:32
John R. Shaw14-Jun-06 2:32 
JokeRe: char* to CString Pin
Eytukan14-Jun-06 2:55
Eytukan14-Jun-06 2:55 
GeneralRe: char* to CString Pin
John R. Shaw14-Jun-06 3:09
John R. Shaw14-Jun-06 3:09 
GeneralRe: char* to CString Pin
Eytukan14-Jun-06 3:18
Eytukan14-Jun-06 3:18 
QuestionHow to create an .exe from my own program Pin
Atom14-Jun-06 0:24
Atom14-Jun-06 0:24 
AnswerRe: How to create an .exe from my own program Pin
John R. Shaw14-Jun-06 0:36
John R. Shaw14-Jun-06 0:36 
QuestionAPI calls Pin
Anu_Bala14-Jun-06 0:17
Anu_Bala14-Jun-06 0:17 
AnswerRe: API calls Pin
Weiye Chen14-Jun-06 0:21
Weiye Chen14-Jun-06 0:21 
AnswerRe: API calls Pin
Eytukan14-Jun-06 0:28
Eytukan14-Jun-06 0:28 
AnswerRe: API calls Pin
John R. Shaw14-Jun-06 0:31
John R. Shaw14-Jun-06 0:31 
QuestionHow to know if a specified string is the current windows account password? Pin
momer14-Jun-06 0:12
momer14-Jun-06 0:12 
JokeRe: How to know if a specified string is the current windows account password? Pin
Smith#14-Jun-06 0:40
Smith#14-Jun-06 0:40 
GeneralRe: How to know if a specified string is the current windows account password? Pin
ThatsAlok14-Jun-06 1:04
ThatsAlok14-Jun-06 1:04 
GeneralRe: How to know if a specified string is the current windows account password? Pin
momer14-Jun-06 14:57
momer14-Jun-06 14:57 
GeneralRe: How to know if a specified string is the current windows account password? Pin
ThatsAlok14-Jun-06 17:55
ThatsAlok14-Jun-06 17:55 
AnswerRe: How to know if a specified string is the current windows account password? Pin
ThatsAlok14-Jun-06 1:04
ThatsAlok14-Jun-06 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.