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.
Post a relevant code snippet.
I have managed to achieve what I was trying to do using a combination of GetFileName, GetFilePath and CString::ReverseFind
Now it works perfectly
Thanks you so much for all your help
Does it work perfectly if the name contains two dots?
Yes it does.
Sign in to comment