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

C / C++ / MFC

 
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 
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 
Are you required to write this yourself? If not, then use PathFindFileName() in shlwapi.dll. Otherwise, use strrchr() to find the last backslash.
char* pLastBkslash = strrchr ( szPathName, '\\' );
char* pFilename;
 
  if ( NULL != pLastBkslash )
    pFilename = pLastBkslash + 1;


--Mike--
"Everyone has figured out what 'service pack' really means, so they had to go and change the language. Perhaps this is what Bill was talking about in the 'security is top priority' letter."
  -- Daniel Ferguson, 1/31/2002
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.

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 
GeneralRe: Fixed size Pin
Christian Graus9-Feb-02 0:25
protectorChristian Graus9-Feb-02 0:25 
GeneralRe: Fixed size Pin
Mazdak9-Feb-02 1:31
Mazdak9-Feb-02 1:31 
GeneralRe: Fixed size Pin
Nish Nishant9-Feb-02 7:34
sitebuilderNish Nishant9-Feb-02 7:34 
GeneralRe: Fixed size Pin
Mazdak9-Feb-02 7:45
Mazdak9-Feb-02 7:45 
GeneralRe: Fixed size Pin
alex.barylski9-Feb-02 11:01
alex.barylski9-Feb-02 11:01 

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.