Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionExcel in MFC Doc View Application Pin
Vikrant for VC++1-Apr-07 23:24
Vikrant for VC++1-Apr-07 23:24 
AnswerRe: Excel in MFC Doc View Application Pin
Rajesh R Subramanian1-Apr-07 23:35
professionalRajesh R Subramanian1-Apr-07 23:35 
AnswerRe: Excel in MFC Doc View Application Pin
#realJSOP2-Apr-07 9:59
professional#realJSOP2-Apr-07 9:59 
QuestionRemove Backslashes Pin
Programm3r1-Apr-07 23:24
Programm3r1-Apr-07 23:24 
AnswerRe: Remove Backslashes Pin
toxcct1-Apr-07 23:27
toxcct1-Apr-07 23:27 
AnswerRe: Remove Backslashes Pin
_AnsHUMAN_ 1-Apr-07 23:35
_AnsHUMAN_ 1-Apr-07 23:35 
GeneralRe: Remove Backslashes Pin
Programm3r1-Apr-07 23:58
Programm3r1-Apr-07 23:58 
AnswerRe: Remove Backslashes Pin
Parthi_Appu1-Apr-07 23:36
Parthi_Appu1-Apr-07 23:36 
Change it to,
static char *FindLastSlash(char *Ptr)
{
 char* pFileName = NULL;
 pFileName = strrchr(Ptr, '\\');
 if (pFileName) pFileName++;
 return pFileName;
}


Note that the pointer returned is the part of Ptr string, no new memory is allocated here.

or as mentioned by toxcct, you can use,
PathFindFileName(..)



Do your Duty and Don't expect the Result
Rate this Post, if I helped You

GeneralRe: Remove Backslashes Pin
Programm3r1-Apr-07 23:57
Programm3r1-Apr-07 23:57 
GeneralRe: Remove Backslashes Pin
Michael Dunn2-Apr-07 15:49
sitebuilderMichael Dunn2-Apr-07 15:49 
GeneralRe: Remove Backslashes Pin
Parthi_Appu2-Apr-07 16:34
Parthi_Appu2-Apr-07 16:34 
GeneralRe: Remove Backslashes Pin
Michael Dunn2-Apr-07 20:11
sitebuilderMichael Dunn2-Apr-07 20:11 
GeneralRe: Remove Backslashes Pin
Parthi_Appu2-Apr-07 21:14
Parthi_Appu2-Apr-07 21:14 
AnswerRe: Remove Backslashes Pin
prasad_som1-Apr-07 23:38
prasad_som1-Apr-07 23:38 
GeneralRe: Remove Backslashes Pin
Eytukan1-Apr-07 23:40
Eytukan1-Apr-07 23:40 
GeneralRe: Remove Backslashes Pin
prasad_som1-Apr-07 23:49
prasad_som1-Apr-07 23:49 
GeneralRe: Remove Backslashes Pin
Programm3r1-Apr-07 23:55
Programm3r1-Apr-07 23:55 
GeneralRe: Remove Backslashes Pin
Naveen2-Apr-07 1:08
Naveen2-Apr-07 1:08 
AnswerRe: Remove Backslashes Pin
prasad_som2-Apr-07 1:48
prasad_som2-Apr-07 1:48 
GeneralRe: Remove Backslashes Pin
Naveen2-Apr-07 1:55
Naveen2-Apr-07 1:55 
AnswerRe: Remove Backslashes Pin
prasad_som2-Apr-07 2:01
prasad_som2-Apr-07 2:01 
GeneralRe: Remove Backslashes Pin
Naveen2-Apr-07 2:13
Naveen2-Apr-07 2:13 
GeneralRe: Remove Backslashes Pin
prasad_som2-Apr-07 2:21
prasad_som2-Apr-07 2:21 
AnswerRe: Remove Backslashes Pin
Sachin R Sangoi2-Apr-07 1:49
Sachin R Sangoi2-Apr-07 1:49 
QuestionString search in a file(very urgent) Pin
yaminisridaran1-Apr-07 23:23
yaminisridaran1-Apr-07 23:23 

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.