-
July 1st, 2013, 12:14 PM
#1
CString + CString
How can I join two cstring
C:\USERS\****\Desktop
and
\
TO MAKE IT C:\USERS\****\Desktop\
-
July 1st, 2013, 12:26 PM
#2
Re: CString + CString
Did you read the CString documentation? It seems pretty obvious to me.
http://msdn.microsoft.com/en-us/libr...=vs.60%29.aspx
-
July 1st, 2013, 12:26 PM
#3
-
July 1st, 2013, 12:29 PM
#4
Re: CString + CString
I tried
Code:
CString backlash = "\";
CString whatever = m_path + backlash;
it takes backlash as a new line though
without adding the \ it will be a path that does not work
example.. C:\Users\******\DesktopFile.cpp
I need C:\Users\******\Desktop\File.cpp
Last edited by vaas; July 1st, 2013 at 12:33 PM.
-
July 1st, 2013, 12:46 PM
#5
Re: CString + CString
for this error
error C2001: newline in constant
instead of using one \ I used \\ and it works now
-
July 1st, 2013, 01:09 PM
#6
Re: CString + CString
Originally Posted by vaas
for this error
error C2001: newline in constant
instead of using one \ I used \\ and it works now
Cool!
Wasn't it a little detail to be clearly shown it in the OP?
Or you simply want to test us about guessing Escape Sequences?
-
July 1st, 2013, 01:30 PM
#7
Re: CString + CString
No, im not testing anyone..but I figured out the problem..and I was posting it ...maybe incase if someone has the same problem
-
July 1st, 2013, 01:39 PM
#8
Re: CString + CString
Originally Posted by vaas
No, im not testing anyone..but I figured out the problem..and I was posting it ...maybe incase if someone has the same problem
Well, then write a book.
Or, a little bit better, learn first how to ask a question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|