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

C / C++ / MFC

 
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 
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 
OK, you are right. But still the insert function does not work properly. Here is the changed code snippet:

int i=0;   <br />
   i = PFPath.Find("\\",i);<br />
   while( i>-1  )<br />
   {           <br />
      CString found;<br />
      found.Format("Backslash found at index: %d",i);<br />
      MessageBox(found);<br />
<br />
      PFPath.Insert(i,(CString)"\\");      <br />
      MessageBox(PFPath);<br />
      i += 2;<br />
      i = PFPath.Find("\\",i);        <br />
   }<br />
   if(i==-1)<br />
      MessageBox("not found");<br />
   MessageBox(PFPath);


Output:
Backslash found at index: 2
C:\folder1
\
not found
\
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 
Generalhelp needed VC++ with MS Word Pin
Barm11-Aug-05 15:48
Barm11-Aug-05 15:48 
GeneralRe: help needed VC++ with MS Word Pin
Jose Lamas Rios11-Aug-05 16:21
Jose Lamas Rios11-Aug-05 16:21 
GeneralRe: help needed VC++ with MS Word Pin
Barm11-Aug-05 16:38
Barm11-Aug-05 16:38 
GeneralMore help needed VC++ with MS Word Pin
Barm11-Aug-05 17:41
Barm11-Aug-05 17:41 
GeneralExit codes Pin
#realJSOP11-Aug-05 15:45
mve#realJSOP11-Aug-05 15:45 
GeneralRe: Exit codes Pin
Christian Graus11-Aug-05 15:52
protectorChristian Graus11-Aug-05 15:52 

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.