Char to string
-
How can i convert a value that is in char format: char news[16] to string? the simple sintax: CString str2 = news; str2.Format("%s"); doesn't seem to do it.
-
How can i convert a value that is in char format: char news[16] to string? the simple sintax: CString str2 = news; str2.Format("%s"); doesn't seem to do it.
CString str2; str2.Format("%s",news); Will do this. Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
How can i convert a value that is in char format: char news[16] to string? the simple sintax: CString str2 = news; str2.Format("%s"); doesn't seem to do it.
chk this. http://www.thecodeproject.com/string/cstringmgmt.asp#char%20*%20to%20CString[^] Appu.. "If you judge people, you have no time to love them."
-
chk this. http://www.thecodeproject.com/string/cstringmgmt.asp#char%20*%20to%20CString[^] Appu.. "If you judge people, you have no time to love them."
-
Keeping view of Beginners, I posted that.Itz really good link for Beginners. Appu.. "If you judge people, you have no time to love them."
-
How can i convert a value that is in char format: char news[16] to string? the simple sintax: CString str2 = news; str2.Format("%s"); doesn't seem to do it.
tanarnelinistit wrote:
CString str2 = news; str2.Format("%s");
this will do too, call argument constructor of CString class CString str2(news);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Its me wrote:
:laugh: y such a long link for this?????/
just a normal habit of programmer.... cut and paste :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You