Find only file name from full path of the file in vc++

Viewed 21078

Suppose there is a CString variable which store the full path of the file.Now I hava to find only file name from if.How to do it in vc++.

CString FileName = "c:\Users\Acer\Desktop\FolderName\abc.dll";

Now I want only abc.dll.

5 Answers
Related