>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