Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalif(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 0:20
Rickard Andersson209-Feb-02 0:20 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 0:26
protectorChristian Graus9-Feb-02 0:26 
GeneralRe: if(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 1:17
Rickard Andersson209-Feb-02 1:17 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 1:28
protectorChristian Graus9-Feb-02 1:28 
GeneralRe: if(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 2:08
Rickard Andersson209-Feb-02 2:08 
GeneralRe: if(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 2:15
Rickard Andersson209-Feb-02 2:15 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 2:33
protectorChristian Graus9-Feb-02 2:33 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 2:45
protectorChristian Graus9-Feb-02 2:45 
I just realised something else that should have been screamingly obvious to me - cPath is a deep copy of one char, it no longer points to the char array that it did in the calling function. You need to pass it in as a char* if you want access to the entire string instead of a copy of the one character.

It's late - I'm going to bed Smile | :)


Christian

I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

Picture the daffodil. And while you do that, I'll be over here going through your stuff.

GeneralRe: if(localPath[i] == "\\") Pin
Ernest Laurentin9-Feb-02 3:59
Ernest Laurentin9-Feb-02 3:59 
GeneralRe: if(localPath[i] == "\\") Pin
moliate9-Feb-02 1:54
moliate9-Feb-02 1:54 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Rickard Andersson209-Feb-02 5:59
Rickard Andersson209-Feb-02 5:59 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Nish Nishant9-Feb-02 7:09
sitebuilderNish Nishant9-Feb-02 7:09 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Michael Dunn9-Feb-02 7:34
sitebuilderMichael Dunn9-Feb-02 7:34 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Nish Nishant9-Feb-02 7:41
sitebuilderNish Nishant9-Feb-02 7:41 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Michael Dunn9-Feb-02 7:53
sitebuilderMichael Dunn9-Feb-02 7:53 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Nish Nishant9-Feb-02 7:57
sitebuilderNish Nishant9-Feb-02 7:57 
GeneralQuertyPerformanceCounter Pin
alex.barylski8-Feb-02 23:21
alex.barylski8-Feb-02 23:21 
GeneralRe: QuertyPerformanceCounter Pin
8-Feb-02 23:42
suss8-Feb-02 23:42 
GeneralFixed size Pin
Mazdak8-Feb-02 23:11
Mazdak8-Feb-02 23:11 
GeneralRe: Fixed size Pin
alex.barylski8-Feb-02 23:26
alex.barylski8-Feb-02 23:26 
GeneralRe: Fixed size Pin
Nish Nishant9-Feb-02 7:30
sitebuilderNish Nishant9-Feb-02 7:30 
GeneralRe: Fixed size Pin
alex.barylski8-Feb-02 23:41
alex.barylski8-Feb-02 23:41 
GeneralRe: Fixed size Pin
Mazdak8-Feb-02 23:55
Mazdak8-Feb-02 23:55 
GeneralRe: Fixed size Pin
Christian Graus9-Feb-02 0:03
protectorChristian Graus9-Feb-02 0:03 
GeneralRe: Fixed size Pin
Mazdak9-Feb-02 0:24
Mazdak9-Feb-02 0:24 

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.