Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPYFILE Hangs
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00407263
Message ID:
00407375
Views:
21
>hi guys,
>Im using the CopyFile API in VFP 6 under WINNT 4 service pack 5 to write to LPT1 as in The API Sample.
>When the printers are on this works fine but when the printers are off VFP hangs. Is there a timeout ? which copyfile can return after certain number of seconds. Any help would be appreciated.

Off the top of my head, you could use CopyFileEx() in conjunction with a timer that sets the pbCancel flag to TRUE after a set period of time.
Mike Stewart
Previous
Reply
Map
View

Click here to load this message in the networking platform