engllf
asked on
File Searching
VC5.0:
How do i search and retrieve the path of a file TEST.CPP ? The drive and the directory which it sits in is unknown.
How do i search and retrieve the path of a file TEST.CPP ? The drive and the directory which it sits in is unknown.
Please try class CFileFind
FindFile() can begin the search.
GetFilePath() can fetch the found file's path name.
FindFile() can begin the search.
GetFilePath() can fetch the found file's path name.
CFileFind is an MFC class. Are you working in MFC?
Prefer direct call to API.
ASKER
I am working in MSVC.
But I prefer direct call to API.
I am trying not to rely to much on MFC.
But I prefer direct call to API.
I am trying not to rely to much on MFC.
ASKER
answer coming in a minute.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER