Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPYFILE Hangs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00407263
Message ID:
00407375
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform