Share via

GetFileName

Pushkins 156 Reputation points
2021-09-14T00:03:58.427+00:00

Hi

I have a problem with GetFileName when getting directory names. If the directory name contains a dot as in Mydir.ectory all I get is Mydir.

If there is no dot as in Mydirectory then it works and I get Mydirectory.

I am guessing it has something to do with extensions. How can I avoid this and get the full directory name even if it contains a dot.

Thank you

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.