Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to get Filename from Path?



How to get Filename from Path?..

Answer / Jitandra Rawat

To get the filename from a path in Win32API code, you can use the PathFileGetFileName function. Here's an example of how to use it:n`nchar fileName[MAX_PATH];nGetFullPathName(path, MAX_PATH, fileName, NULL);nchar *filename = strrchr(fileName, '');nif (filename == nullptr) filename = fileName;nelse filename++;nn`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Win32API Code Interview Questions

How to get Filename from Path?

1 Answers  


What is the functionality of EnumChildWindows?

1 Answers  


What is the functionality of FindWindow?

1 Answers  


How to Check if Folder Exists?

1 Answers  


How to Check if File Exists?

1 Answers  


How to check if Folder is a Special Shell Folder ?

1 Answers  


What is the functionality of GetDesktopWindow?

1 Answers  


What is the functionality of GetWindow?

1 Answers  


What is the functionality of SendMessage?

1 Answers  


Plrase send project in vb.net on hotel management.

0 Answers  


What is the functionality of EnumWindows?

1 Answers  


What is the functionality of GetWindowText?

1 Answers  


Categories