Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCHtmlView navigation error Pin
Marc Soleda11-Aug-05 22:38
Marc Soleda11-Aug-05 22:38 
GeneralRe: CHtmlView navigation error Pin
Jose Lamas Rios12-Aug-05 5:26
Jose Lamas Rios12-Aug-05 5:26 
GeneralRe: CHtmlView navigation error Pin
Marc Soleda15-Aug-05 19:24
Marc Soleda15-Aug-05 19:24 
GeneralCompiler fun Pin
benjymous11-Aug-05 22:15
benjymous11-Aug-05 22:15 
GeneralRe: Compiler fun Pin
Graham Bradshaw12-Aug-05 3:47
Graham Bradshaw12-Aug-05 3:47 
GeneralRe: Compiler fun Pin
Jose Lamas Rios12-Aug-05 5:36
Jose Lamas Rios12-Aug-05 5:36 
GeneralRe: Compiler fun Pin
Chris Losinger12-Aug-05 4:08
professionalChris Losinger12-Aug-05 4:08 
Questionhow to insert a back slash \ in a string Pin
caykahve11-Aug-05 21:50
caykahve11-Aug-05 21:50 
Hi,

I get a path like "C:\folder" in my program. And I want to use it in a function which needs "C:\\folder". I wanted to use CString::Insert() function, but I got the error message 'new line in constant' when I use this: "\"

How can I insert a \ in a string?

Thanks in advance
caykahve
AnswerRe: how to insert a back slash \ in a string Pin
Cedric Moonen11-Aug-05 21:53
Cedric Moonen11-Aug-05 21:53 
GeneralRe: how to insert a back slash \ in a string Pin
caykahve11-Aug-05 22:11
caykahve11-Aug-05 22:11 
GeneralRe: how to insert a back slash \ in a string Pin
Cedric Moonen11-Aug-05 22:16
Cedric Moonen11-Aug-05 22:16 
GeneralRe: how to insert a back slash \ in a string Pin
caykahve11-Aug-05 22:43
caykahve11-Aug-05 22:43 
GeneralRe: how to insert a back slash \ in a string Pin
Cedric Moonen11-Aug-05 22:52
Cedric Moonen11-Aug-05 22:52 
GeneralRe: how to insert a back slash \ in a string Pin
caykahve11-Aug-05 23:24
caykahve11-Aug-05 23:24 
AnswerRe: how to insert a back slash \ in a string Pin
David Crow12-Aug-05 3:22
David Crow12-Aug-05 3:22 
GeneralRe: how to insert a back slash \ in a string Pin
caykahve12-Aug-05 5:47
caykahve12-Aug-05 5:47 
GeneralRe: how to insert a back slash \ in a string Pin
David Crow12-Aug-05 6:06
David Crow12-Aug-05 6:06 
Generalsocket communication with video Pin
Nishad S11-Aug-05 21:41
Nishad S11-Aug-05 21:41 
GeneralRe: socket communication with video Pin
ThatsAlok11-Aug-05 22:24
ThatsAlok11-Aug-05 22:24 
GeneralSorting List View Pin
BicycleTheif11-Aug-05 20:45
BicycleTheif11-Aug-05 20:45 
GeneralRe: Sorting List View Pin
Jose Lamas Rios11-Aug-05 20:50
Jose Lamas Rios11-Aug-05 20:50 
GeneralRe: Sorting List View Pin
SVPG12-Aug-05 0:55
SVPG12-Aug-05 0:55 
GeneralRe: Sorting List View Pin
David Crow12-Aug-05 3:27
David Crow12-Aug-05 3:27 
GeneralMS Word automation Pin
Imtiaz Murtaza11-Aug-05 18:05
Imtiaz Murtaza11-Aug-05 18:05 
GeneralRe: MS Word automation Pin
Jose Lamas Rios11-Aug-05 18:35
Jose Lamas Rios11-Aug-05 18:35 

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.