Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralForcefully closeing a Winsock connection Pin
Giles18-Jul-03 3:29
Giles18-Jul-03 3:29 
GeneralRe: Forcefully closeing a Winsock connection Pin
Mike Nordell19-Jul-03 4:31
Mike Nordell19-Jul-03 4:31 
GeneralRe: Forcefully closeing a Winsock connection Pin
Giles19-Jul-03 4:50
Giles19-Jul-03 4:50 
GeneralRe: Forcefully closeing a Winsock connection Pin
Mike Nordell19-Jul-03 6:32
Mike Nordell19-Jul-03 6:32 
Generalkey press Pin
Newborn Naughtysaint18-Jul-03 3:14
Newborn Naughtysaint18-Jul-03 3:14 
GeneralRe: key press Pin
Xander8018-Jul-03 4:44
Xander8018-Jul-03 4:44 
GeneralRe: key press Pin
John M. Drescher18-Jul-03 8:34
John M. Drescher18-Jul-03 8:34 
GeneralBest way to test for file available Pin
captjack18-Jul-03 2:46
captjack18-Jul-03 2:46 
I am maintaining a service that uses ReadDirectoryChangesW() calls to monitor a set of directories. When a file is dropped (or pasted or copied) into the monitored directory the service detects the new file and processes the new file.

I want to make sure the file is "all there" before taking any action on the file. Currently the service does a "_stat" call to get the file size and then tries an "_sopen" to make sure it is accessible. If either call fails it performs a set of retries.

Occasionally this setup fails. For example, a set of three files are being pasted into the monitored folder and the service fails reading the first file. When I check the folder...none of the files are there!!! Not sure, but somehow the Explorer copy/paste operation is being halted by the file tests. Any ideas? Is there a better way to see if the pasted file exists and is available?

PS: The copy/paste is being done between a local drive and a mounted network drive.

Jack
GeneralRe: Best way to test for file available Pin
Blake Miller18-Jul-03 5:33
Blake Miller18-Jul-03 5:33 
GeneralRe: Best way to test for file available Pin
captjack18-Jul-03 6:23
captjack18-Jul-03 6:23 
GeneralCopy/paste in CRichEditCtrl Pin
AnTri18-Jul-03 2:03
AnTri18-Jul-03 2:03 
GeneralRe: Copy/paste in CRichEditCtrl Pin
Dominik Reichl18-Jul-03 2:08
Dominik Reichl18-Jul-03 2:08 
QuestionHow to Capture HTML events in vc++? Pin
RaajaOfSelf18-Jul-03 2:02
RaajaOfSelf18-Jul-03 2:02 
GeneralDLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 1:59
ttran770018-Jul-03 1:59 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
Dominik Reichl18-Jul-03 2:03
Dominik Reichl18-Jul-03 2:03 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 4:49
ttran770018-Jul-03 4:49 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
Ilushka20-Jul-03 22:03
Ilushka20-Jul-03 22:03 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
John M. Drescher18-Jul-03 4:00
John M. Drescher18-Jul-03 4:00 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 4:50
ttran770018-Jul-03 4:50 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
Peter Weyzen18-Jul-03 6:44
Peter Weyzen18-Jul-03 6:44 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
Michael P Butler18-Jul-03 7:54
Michael P Butler18-Jul-03 7:54 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 9:05
ttran770018-Jul-03 9:05 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 5:02
ttran770018-Jul-03 5:02 
GeneralTracking a CWnd window Pin
Eugene Pustovoyt18-Jul-03 1:46
Eugene Pustovoyt18-Jul-03 1:46 
GeneralApplication Control Pin
Member 18130718-Jul-03 1:36
Member 18130718-Jul-03 1:36 

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.