Click here to Skip to main content
16,007,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: inet_addr(...) problem Pin
Anonymous21-Oct-02 10:39
Anonymous21-Oct-02 10:39 
GeneralRe: inet_addr(...) problem Pin
Rickard Andersson2021-Oct-02 21:28
Rickard Andersson2021-Oct-02 21:28 
GeneralDetecting a file close event Pin
Harold Bamford21-Oct-02 9:50
Harold Bamford21-Oct-02 9:50 
GeneralRe: Detecting a file close event Pin
Neville Franks21-Oct-02 11:31
Neville Franks21-Oct-02 11:31 
GeneralRe: Detecting a file close event Pin
Harold Bamford21-Oct-02 11:40
Harold Bamford21-Oct-02 11:40 
GeneralRe: Detecting a file close event Pin
Joaquín M López Muñoz21-Oct-02 11:47
Joaquín M López Muñoz21-Oct-02 11:47 
GeneralRe: Detecting a file close event Pin
Harold Bamford21-Oct-02 11:56
Harold Bamford21-Oct-02 11:56 
GeneralRe: Detecting a file close event Pin
Neville Franks21-Oct-02 12:01
Neville Franks21-Oct-02 12:01 
Harold Bamford wrote:
Oh, would that it were so easy!

Yep.;)

I'd like to think AcroRd32.exe locked the file it was printing to. If it does then you could try opening it for write access from time to time and when the open succeeded you'd be away.

There is a Win API FindFirstChangeNotification() which would be worth looking at, but in this case I don't think it will help. See: http://www.codeproject.com/file/filewatch.asp[^]etc.

Also have a look at www.sysinternals.com (seems to be down at present). They have a program called called something like FileWatch which should provide a solution.

Neville Franks, Author of ED for Windows. www.getsoft.com
GeneralRe: Detecting a file close event Pin
Harold Bamford22-Oct-02 8:29
Harold Bamford22-Oct-02 8:29 
GeneralMonitoring a Temperature/C++ Pin
LostInC++21-Oct-02 9:48
LostInC++21-Oct-02 9:48 
GeneralRe: Monitoring a Temperature/C++ Pin
Joaquín M López Muñoz21-Oct-02 10:06
Joaquín M López Muñoz21-Oct-02 10:06 
GeneralMonitoring a Temperature Value using C++ Pin
LostInC++21-Oct-02 9:47
LostInC++21-Oct-02 9:47 
GeneralRe: Monitoring a Temperature Value using C++ Pin
LostInC++21-Oct-02 10:48
LostInC++21-Oct-02 10:48 
GeneralCustom draw a CTreeCtrl View Pin
Anonymous21-Oct-02 9:44
Anonymous21-Oct-02 9:44 
GeneralIs there a function for determining the number of sub items? Pin
21-Oct-02 10:50
suss21-Oct-02 10:50 
QuestionCreateProcess Window Closes When Program Exits, WHY? Pin
mediamaster4021-Oct-02 9:44
mediamaster4021-Oct-02 9:44 
AnswerRe: CreateProcess Window Closes When Program Exits, WHY? Pin
Mike Nordell21-Oct-02 21:13
Mike Nordell21-Oct-02 21:13 
GeneralRe: CreateProcess Window Closes When Program Exits, WHY? Pin
mediamaster4022-Oct-02 10:23
mediamaster4022-Oct-02 10:23 
GeneralRelease program copy Pin
Brad Jennings21-Oct-02 9:29
Brad Jennings21-Oct-02 9:29 
GeneralRe: Release program copy Pin
Joaquín M López Muñoz21-Oct-02 9:34
Joaquín M López Muñoz21-Oct-02 9:34 
GeneralRe: Release program copy Pin
Brad Jennings21-Oct-02 10:09
Brad Jennings21-Oct-02 10:09 
GeneralRe: Release program copy Pin
Brad Jennings21-Oct-02 10:14
Brad Jennings21-Oct-02 10:14 
GeneralRe: Release program copy Pin
Joaquín M López Muñoz21-Oct-02 10:14
Joaquín M López Muñoz21-Oct-02 10:14 
GeneralFile Pin
Anonymous21-Oct-02 9:29
Anonymous21-Oct-02 9:29 
GeneralRe: File Pin
Mazdak21-Oct-02 9:43
Mazdak21-Oct-02 9:43 

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.