Questions tagged [cfilefind]
5 questions
2
votes
4 answers
How to avoid CFileFind false positive with file extension longer than three characters?
When I try to call CFileFind.FindFile(_T("D://Folder//*.txt")), the method returns true when the only file is "foobar.txta".
However, I don't want the file foobar.txta to be included the find result. How do I make it that way? Probably by using…

Louis Rhys
- 34,517
- 56
- 153
- 221
1
vote
1 answer
CFileFind not taking into account the first file of a directory
I have a problem with getting the latest file of a directory.
My code works just fine unless there is only one file in that folder.
I am using the CFileFind class to make this all happened. I looked at the Microsoft documentation and it says that…

V Mircan
- 203
- 5
- 13
1
vote
0 answers
Getting extra character with file name
I am using CFileFind to get files list . i have an issue with one particular file always. getting file title with extra character '?' appended .
original name : _KO - Ennamo Yedho Video Song HD_test.txt
retrieved name : _KO - Ennamo Yedho Video…

jack
- 355
- 1
- 4
- 12
0
votes
1 answer
CFileFind::FindFile and network paths
I have a dll that opens a file for processing. It attempts to find the file with FindFile() function. I also have a service that calls the dll and here is the problem - when the path to the file is a network path, FindFile() fails to find it but…

mertol
- 1
- 2
-1
votes
1 answer
How to use CFileFind in MFC Smart Device Application VC++?
I am getting error like this
error C2065: 'CFileFind' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'finder'
error C2065: 'finder' : undeclared identifier
error C2065: 'finder' : undeclared identifier

Arjun Kanti
- 101
- 2
- 4
- 12