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 |
How to get Filename from Path?
What is the functionality of EnumChildWindows?
What is the functionality of FindWindow?
How to Check if Folder Exists?
How to Check if File Exists?
How to check if Folder is a Special Shell Folder ?
What is the functionality of GetDesktopWindow?
What is the functionality of GetWindow?
What is the functionality of SendMessage?
Plrase send project in vb.net on hotel management.
What is the functionality of EnumWindows?
What is the functionality of GetWindowText?