Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Iterate files in folder/sub folders Pin
alex.barylski30-Jul-03 21:48
alex.barylski30-Jul-03 21:48 
GeneralProblem creating C++ MFC Application using Visual C++ .NET Pin
ElizabethC30-Jul-03 12:37
ElizabethC30-Jul-03 12:37 
QuestionCatching file system updates? Pin
kaladorn30-Jul-03 12:03
kaladorn30-Jul-03 12:03 
AnswerRe: Catching file system updates? Pin
Ted Ferenc30-Jul-03 12:35
Ted Ferenc30-Jul-03 12:35 
GeneralRe: Catching file system updates? Pin
kaladorn30-Jul-03 13:51
kaladorn30-Jul-03 13:51 
GeneralRe: Catching file system updates? Pin
Ted Ferenc30-Jul-03 21:32
Ted Ferenc30-Jul-03 21:32 
AnswerRe: Catching file system updates? Pin
Beer2630-Jul-03 12:37
Beer2630-Jul-03 12:37 
GeneralRe: Catching file system updates? Pin
kaladorn30-Jul-03 13:46
kaladorn30-Jul-03 13:46 
Beer said:

start a thread the block it waiting for the hNotify handle to be valid

HANDLE hNotify = FindFirstChangeNotification(_T("C:\\Monitor_this_folder"), TRUE,
FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_DIR_NAME |
FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SIZE);

Tomb replies:

I'd seen that function.... so it seems my suspicion is confirmed. Will this notify you of changes in subdirs? (ie if I set it for c:\\* (root folder), will it notify of changes in any child dir? or do I have to somehow monitor every folder concurrently (and if so, is there a good way to do this as a whacking pile of threads might not be an ideal choice.... maybe some sort of multiple object wait?)

This looks like what I'm wanting thought. Smile | :)

Thanks muchly. Cool | :cool:
GeneralRe: Catching file system updates? Pin
Beer2630-Jul-03 14:11
Beer2630-Jul-03 14:11 
GeneralRe: Catching file system updates? Pin
kaladorn30-Jul-03 14:15
kaladorn30-Jul-03 14:15 
GeneralRe: Catching file system updates? Pin
Beer2630-Jul-03 14:16
Beer2630-Jul-03 14:16 
GeneralRe: Catching file system updates? Pin
Beer2630-Jul-03 14:18
Beer2630-Jul-03 14:18 
GeneralAdjustTokenPrivileges Pin
Anonymous30-Jul-03 11:31
Anonymous30-Jul-03 11:31 
GeneralRe: AdjustTokenPrivileges Pin
Mike Dimmick30-Jul-03 23:38
Mike Dimmick30-Jul-03 23:38 
Generalmy exe's small icon Pin
Marissa18230-Jul-03 11:02
Marissa18230-Jul-03 11:02 
GeneralRe: my exe's small icon Pin
Beer2630-Jul-03 11:49
Beer2630-Jul-03 11:49 
GeneralShut Down the pc Pin
Anonymous30-Jul-03 10:48
Anonymous30-Jul-03 10:48 
GeneralRe: Shut Down the pc Pin
User 665830-Jul-03 10:51
User 665830-Jul-03 10:51 
GeneralRe: Shut Down the pc Pin
Anonymous30-Jul-03 11:30
Anonymous30-Jul-03 11:30 
GeneralRe: Shut Down the pc Pin
John M. Drescher30-Jul-03 11:47
John M. Drescher30-Jul-03 11:47 
GeneralNon MDI /SDI Pin
act_x30-Jul-03 10:20
act_x30-Jul-03 10:20 
QuestionHow to make a function that you can pass any type of array to?? Pin
johnstonsk30-Jul-03 10:02
johnstonsk30-Jul-03 10:02 
AnswerRe: How to make a function that you can pass any type of array to?? Pin
Dean Goodman30-Jul-03 10:20
Dean Goodman30-Jul-03 10:20 
GeneralRe: How to make a function that you can pass any type of array to?? Pin
johnstonsk30-Jul-03 10:33
johnstonsk30-Jul-03 10:33 
GeneralRe: How to make a function that you can pass any type of array to?? Pin
Ian Darling30-Jul-03 11:19
Ian Darling30-Jul-03 11:19 

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.