Click here to Skip to main content
16,006,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery6-Jan-07 12:05
Mark Salsbery6-Jan-07 12:05 
QuestionCMap [modified] Pin
devvvy29-Dec-06 14:44
devvvy29-Dec-06 14:44 
AnswerRe: CMap Pin
Blake Miller2-Jan-07 11:01
Blake Miller2-Jan-07 11:01 
QuestionHow to Detect the Users CD Rom drive Pin
Larry Mills Sr29-Dec-06 13:25
Larry Mills Sr29-Dec-06 13:25 
AnswerRe: How to Detect the Users CD Rom drive Pin
bolivar12329-Dec-06 17:52
bolivar12329-Dec-06 17:52 
AnswerRe: How to Detect the Users CD Rom drive Pin
Gary R. Wheeler30-Dec-06 3:34
Gary R. Wheeler30-Dec-06 3:34 
QuestionWay to tell which process last wrote to a file? Pin
RDarrylR29-Dec-06 12:50
RDarrylR29-Dec-06 12:50 
AnswerRe: Way to tell which process last wrote to a file? Pin
Garth J Lancaster29-Dec-06 13:23
professionalGarth J Lancaster29-Dec-06 13:23 
I would have thought it was easier for each process to tag the entry/entries in the log file with a moniker unique to that process - I guess it depends on the lifetime of the process as to what you're doing with the information

I dont think there's an 'easy' way of looking at a file and saying 'who last wrote to it' from an o/s point of view

- I think you can :-

enumerate active processes
for each process, see what file(s) its using

or maybe use a hook and detect when a particular file (the log file) is opened, then raise an event

or use a filesystem watcher to raise an event when the log file is modified, but Im not sure if that gives you the process details

but thats a lot of overhead isnt it ?

if anyone else knows how to solve this I'd love to see the answer myself

'g'
GeneralRe: Way to tell which process last wrote to a file? Pin
RDarrylR29-Dec-06 13:56
RDarrylR29-Dec-06 13:56 
AnswerRe: Way to tell which process last wrote to a file? Pin
Cristian Amarie29-Dec-06 22:44
Cristian Amarie29-Dec-06 22:44 
GeneralRe: Way to tell which process last wrote to a file? Pin
RDarrylR30-Dec-06 3:23
RDarrylR30-Dec-06 3:23 
AnswerRe: Way to tell which process last wrote to a file? Pin
Hamid_RT30-Dec-06 5:57
Hamid_RT30-Dec-06 5:57 
GeneralRe: Way to tell which process last wrote to a file? Pin
Cristian Amarie30-Dec-06 7:04
Cristian Amarie30-Dec-06 7:04 
QuestionMessage Removed Pin
29-Dec-06 11:31
Armond Sarkisian29-Dec-06 11:31 
AnswerRe: Opening a dialogue window Pin
Hamid_RT29-Dec-06 17:10
Hamid_RT29-Dec-06 17:10 
AnswerRe: Opening a dialogue window Pin
Joan M30-Dec-06 2:34
professionalJoan M30-Dec-06 2:34 
QuestionDriver installation checking Pin
RomTibi29-Dec-06 10:57
RomTibi29-Dec-06 10:57 
AnswerRe: Driver installation checking Pin
Ralf Lohmueller29-Dec-06 14:53
Ralf Lohmueller29-Dec-06 14:53 
GeneralRe: Driver installation checking Pin
RomTibi29-Dec-06 19:25
RomTibi29-Dec-06 19:25 
QuestionVC++6 InitInstance strange thing? Pin
Joan M29-Dec-06 9:59
professionalJoan M29-Dec-06 9:59 
AnswerRe: VC++6 InitInstance strange thing? Pin
David Crow29-Dec-06 10:07
David Crow29-Dec-06 10:07 
GeneralRe: VC++6 InitInstance strange thing? Pin
Joan M29-Dec-06 10:14
professionalJoan M29-Dec-06 10:14 
GeneralRe: VC++6 InitInstance strange thing? Pin
David Crow29-Dec-06 10:24
David Crow29-Dec-06 10:24 
GeneralRe: VC++6 InitInstance strange thing? Pin
Joan M29-Dec-06 10:36
professionalJoan M29-Dec-06 10:36 
GeneralRe: VC++6 InitInstance strange thing? Pin
David Crow29-Dec-06 10:46
David Crow29-Dec-06 10:46 

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.