How to append string with ".
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi all, How can i get this below string. For example: I want to pass string as phone+="984512345". I am trying with below code.
CString str = "phone+=";
str += "984512345";Output:str = phone+=984512345.
I am not getting that "984512345". How can i add " to that string Thanks Raj
-
Hi all, How can i get this below string. For example: I want to pass string as phone+="984512345". I am trying with below code.
CString str = "phone+=";
str += "984512345";Output:str = phone+=984512345.
I am not getting that "984512345". How can i add " to that string Thanks Raj
If I well understood, you want the " into the final string. Try
CString str = "phone+=";
str += "\"984512345\"";2 bugs found. > recompile ... 65534 bugs found. :doh: