How to Use regular expression in VC6 to get filename?

Hi all,

How to get filename using regeular exp in VC6? my path is as below :

c:\abc\def\\abc.doc

How can I grab abc.doc from above path.

regards,
titanium0203
titanium0203Asked:
Who is Participating?
 
ZoppoCommented:
Hi titanium0203,

you can even use _splitpath - for an example take a look here: http://msdn.microsoft.com/en-us/library/aa273364%28v=vs.60%29.aspx

ZOPPO
0
 
parnassoCommented:
What is wrong with PathFindFileName declared in shlwapi.h?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.