Click here to Skip to main content
15,844,387 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: How to get file name from a full path Pin
Naveen23-Jan-08 22:08
Naveen23-Jan-08 22:08 
GeneralRe: How to get file name from a full path Pin
zengkun10023-Jan-08 19:19
zengkun10023-Jan-08 19:19 
GeneralRe: How to get file name from a full path Pin
Don Box23-Jan-08 20:05
Don Box23-Jan-08 20:05 
GeneralRe: How to get file name from a full path Pin
Rajesh R Subramanian23-Jan-08 22:05
professionalRajesh R Subramanian23-Jan-08 22:05 
GeneralRe: How to get file name from a full path Pin
zengkun10024-Jan-08 0:49
zengkun10024-Jan-08 0:49 
GeneralRe: How to get file name from a full path Pin
Rajesh R Subramanian24-Jan-08 1:21
professionalRajesh R Subramanian24-Jan-08 1:21 
AnswerRe: How to get file name from a full path Pin
fd012900223-Jan-08 22:06
fd012900223-Jan-08 22:06 
GeneralRe: How to get file name from a full path Pin
Nitheesh George23-Jan-08 23:52
Nitheesh George23-Jan-08 23:52 
Hi,

char szFilePath[MAX_PATH] = {"C:\\Program Files\\codeproject.txt"};

char szFileNameOnly = strrchr(szFilePath,'\\');
if(szFileNameOnly)
szFileNameOnly++;

now szFileName points to "codeproject.txt"


i think this works fine for u.
GeneralRe: How to get file name from a full path Pin
Rajesh R Subramanian24-Jan-08 0:32
professionalRajesh R Subramanian24-Jan-08 0:32 
QuestionHow do I get information about a URL Pin
jfmcdprof23-Jan-08 15:43
jfmcdprof23-Jan-08 15:43 
Questiondriving stepper motor Pin
Adnan Merter23-Jan-08 12:44
Adnan Merter23-Jan-08 12:44 
GeneralRe: driving stepper motor Pin
Mark Salsbery23-Jan-08 13:00
Mark Salsbery23-Jan-08 13:00 
QuestionRe: driving stepper motor Pin
David Crow24-Jan-08 4:27
David Crow24-Jan-08 4:27 
GeneralRe: driving stepper motor Pin
Adnan Merter24-Jan-08 5:09
Adnan Merter24-Jan-08 5:09 
GeneralVTable Madness [modified] Pin
73Zeppelin23-Jan-08 10:49
73Zeppelin23-Jan-08 10:49 
QuestionRe: VTable Madness Pin
Maximilien23-Jan-08 11:31
Maximilien23-Jan-08 11:31 
GeneralRe: VTable Madness Pin
73Zeppelin23-Jan-08 11:39
73Zeppelin23-Jan-08 11:39 
GeneralRe: VTable Madness Pin
Jim Crafton23-Jan-08 13:02
Jim Crafton23-Jan-08 13:02 
GeneralRe: VTable Madness Pin
73Zeppelin23-Jan-08 20:26
73Zeppelin23-Jan-08 20:26 
GeneralSolution! Pin
73Zeppelin23-Jan-08 21:03
73Zeppelin23-Jan-08 21:03 
GeneralRe: Solution! Pin
Rajesh R Subramanian23-Jan-08 23:24
professionalRajesh R Subramanian23-Jan-08 23:24 
GeneralRe: Solution! Pin
Jim Crafton24-Jan-08 4:23
Jim Crafton24-Jan-08 4:23 
GeneralRe: Solution! Pin
73Zeppelin24-Jan-08 4:39
73Zeppelin24-Jan-08 4:39 
Questionc/c++ binary to string and vice versa conversion functions? Pin
mindspin31123-Jan-08 6:02
mindspin31123-Jan-08 6:02 
AnswerRe: c/c++ binary to string and vice versa conversion functions? Pin
David Crow23-Jan-08 6:26
David Crow23-Jan-08 6:26 

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.