Click here to Skip to main content
15,906,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Reading and writing some data from an Excel file Pin
David Crow4-Oct-05 3:22
David Crow4-Oct-05 3:22 
Questionlaunching Dev manager Pin
act_x3-Oct-05 12:26
act_x3-Oct-05 12:26 
AnswerRe: launching Dev manager Pin
Prakash Nadar3-Oct-05 15:11
Prakash Nadar3-Oct-05 15:11 
AnswerRe: launching Dev manager Pin
David Crow4-Oct-05 3:31
David Crow4-Oct-05 3:31 
Questionwhat's the difference between them Pin
valerie993-Oct-05 10:31
valerie993-Oct-05 10:31 
AnswerRe: what's the difference between them Pin
Prakash Nadar3-Oct-05 15:13
Prakash Nadar3-Oct-05 15:13 
QuestionSimple question Pin
Alex Cutovoi3-Oct-05 9:09
Alex Cutovoi3-Oct-05 9:09 
AnswerRe: Simple question Pin
David Crow3-Oct-05 9:20
David Crow3-Oct-05 9:20 
GeneralRe: Simple question Pin
Fired Fish3-Oct-05 14:02
Fired Fish3-Oct-05 14:02 
AnswerRe: Simple question Pin
Prakash Nadar3-Oct-05 15:18
Prakash Nadar3-Oct-05 15:18 
GeneralRe: Simple question Pin
Rick York3-Oct-05 16:37
mveRick York3-Oct-05 16:37 
GeneralRe: Simple question Pin
Prakash Nadar3-Oct-05 16:44
Prakash Nadar3-Oct-05 16:44 
Question_beginthread and calling convention __fastcall error Pin
DaviziN3-Oct-05 8:08
DaviziN3-Oct-05 8:08 
QuestionRe: _beginthread and calling convention __fastcall error Pin
David Crow3-Oct-05 9:21
David Crow3-Oct-05 9:21 
AnswerRe: _beginthread and calling convention __fastcall error Pin
Shog93-Oct-05 11:51
sitebuilderShog93-Oct-05 11:51 
GeneralRe: _beginthread and calling convention __fastcall error Pin
DaviziN3-Oct-05 20:53
DaviziN3-Oct-05 20:53 
GeneralRe: _beginthread and calling convention __fastcall error Pin
David Crow4-Oct-05 2:37
David Crow4-Oct-05 2:37 
GeneralRe: _beginthread and calling convention __fastcall error Pin
Shog94-Oct-05 6:34
sitebuilderShog94-Oct-05 6:34 
QuestionWeird compiler error Pin
Jim Crafton3-Oct-05 8:00
Jim Crafton3-Oct-05 8:00 
AnswerRe: Weird compiler error Pin
ddmcr3-Oct-05 9:17
ddmcr3-Oct-05 9:17 
GeneralRe: Weird compiler error Pin
Jim Crafton3-Oct-05 9:22
Jim Crafton3-Oct-05 9:22 
GeneralRe: Weird compiler error Pin
ddmcr3-Oct-05 9:30
ddmcr3-Oct-05 9:30 
QuestionReadDirectoryChangesW Pin
Klempie3-Oct-05 7:59
Klempie3-Oct-05 7:59 
I am using ReadDirectoryChangesW to detect changes on a file in an MFC app (basically watches the containing directory and then sees if it was the specified file).

When I modify the file and save, the event is detected and the thread calls the main application thread to process. However, it appears that a file modification (or creation for that matter) generates 3 or 4 notification records all containing the FILE_ACTION_MODIFIED constant. This results in the event handler processing the event multiple times instead of once giving poor performance. First do they represent different updates (eg. content, attributes) and second is there a simple way of differentiating between them without writing complicated code checking attributes, etc?

I tested Wes Jones's DirWatcher project and it does the same thing.

TIA
QuestionRe: ReadDirectoryChangesW Pin
David Crow3-Oct-05 9:24
David Crow3-Oct-05 9:24 
AnswerRe: ReadDirectoryChangesW Pin
Klempie3-Oct-05 10:00
Klempie3-Oct-05 10:00 

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.