Answer Posted / 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 View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category