Click here to Skip to main content
15,916,412 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Classes which call each other's methods Pin
0v3rloader15-Jul-04 11:53
0v3rloader15-Jul-04 11:53 
GeneralRe: Classes which call each other's methods Pin
Antti Keskinen15-Jul-04 12:04
Antti Keskinen15-Jul-04 12:04 
GeneralRe: Classes which call each other's methods Pin
0v3rloader15-Jul-04 12:23
0v3rloader15-Jul-04 12:23 
QuestionWhy "SAFEARRAY"?? Pin
So and So15-Jul-04 11:25
So and So15-Jul-04 11:25 
QuestionFastest way to find a file exists on hard drive? Pin
xcavin15-Jul-04 11:22
xcavin15-Jul-04 11:22 
AnswerRe: no replies for serious issues. Pin
xcavin15-Jul-04 12:18
xcavin15-Jul-04 12:18 
GeneralRe: no replies for serious issues. Pin
Anders Molin15-Jul-04 12:34
professionalAnders Molin15-Jul-04 12:34 
AnswerRe: Fastest way to find a file exists on hard drive? Pin
Henry miller15-Jul-04 12:32
Henry miller15-Jul-04 12:32 
This is evil. Are you sure you can't get a path, or at least some restrictions on where the file can be? Can you rethink the design? Sometimes you have to do something evil, but you should seriously consider if there is some other option before doing this.

I think you have to search every direcotry, one at a time, which as you can guess is not fast. Standard visit every node in a tree algorithm, see any textbook. Filesystems do not normally catch all the filenames on disk. (some will cache directory trees)

If you are getting data for a specific a user, then you should restrict your search to "My Documents" for that user, which will be much faster. (but you still need to look on floppys, USB keys, and other devices, or at least make is possible)

You might also be able to store something in the registry.
GeneralRe: Fastest way to find a file exists on hard drive? Pin
Henry miller16-Jul-04 2:47
Henry miller16-Jul-04 2:47 
AnswerRe: Fastest way to find a file exists on hard drive? Pin
Anders Molin15-Jul-04 12:33
professionalAnders Molin15-Jul-04 12:33 
AnswerRe: Fastest way to find a file exists on hard drive? Pin
Anonymous15-Jul-04 20:55
Anonymous15-Jul-04 20:55 
AnswerRe: Fastest way to find a file exists on hard drive? Pin
Blake Miller20-Jul-04 12:29
Blake Miller20-Jul-04 12:29 
GeneralGetDC drawing in win32 Pin
jass198115-Jul-04 10:31
sussjass198115-Jul-04 10:31 
GeneralRe: GetDC drawing in win32 Pin
RobJones15-Jul-04 11:23
RobJones15-Jul-04 11:23 
GeneralLPTSTR, LPCTSTR, CString and others... Pin
Kaleb Pederson15-Jul-04 9:22
Kaleb Pederson15-Jul-04 9:22 
GeneralRe: LPTSTR, LPCTSTR, CString and others... Pin
Toni7815-Jul-04 9:40
Toni7815-Jul-04 9:40 
GeneralRe: LPTSTR, LPCTSTR, CString and others... Pin
Adam Durity15-Jul-04 9:49
Adam Durity15-Jul-04 9:49 
GeneralRe: LPTSTR, LPCTSTR, CString and others... Pin
Antti Keskinen15-Jul-04 9:53
Antti Keskinen15-Jul-04 9:53 
GeneralRe: LPTSTR, LPCTSTR, CString and others... Pin
Kaleb Pederson15-Jul-04 11:25
Kaleb Pederson15-Jul-04 11:25 
GeneralRe: LPTSTR, LPCTSTR, CString and others... Pin
Antti Keskinen15-Jul-04 11:50
Antti Keskinen15-Jul-04 11:50 
GeneralRe: LPTSTR, LPCTSTR, CString and others... Pin
PJ Arends15-Jul-04 17:14
professionalPJ Arends15-Jul-04 17:14 
GeneralRe: LPTSTR, LPCTSTR, CString and others... Pin
Mike Dimmick15-Jul-04 9:58
Mike Dimmick15-Jul-04 9:58 
GeneralRe: LPTSTR, LPCTSTR, CString and others... Pin
digwizfox15-Jul-04 11:07
digwizfox15-Jul-04 11:07 
Generalabt running exe Pin
jass198115-Jul-04 9:20
sussjass198115-Jul-04 9:20 
GeneralRe: abt running exe Pin
Toni7815-Jul-04 9:42
Toni7815-Jul-04 9:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.