Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MediaCopy method is distribution
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00643976
Message ID:
00645914
Vues:
17
>>>>Hi everybody,
>>>>
>>>>I've just received control on Distribution application. This application is quite complicated, but here is one method, which looks suspicious to me:
>>>< snip >
>>>>
>>>>I believe, on some systems if drive is not ready, we'll see the system level error (Windows error) and not VFP error. I have IsDriveReady function, which uses WSH. Do you think, I should re-write this method?
>>>>
>>>>What would be your suggestions?
>>>>
>>>>Thanks in advance.
>>>
>>>"If it ain't broken, don't fix it". :)
>>>Under NT/WIn2K you'll get Windows dialog if there's no diskette in the floppy drive. If you concern about that add a few lines of code from mskb #Q191501 to supress those messages.
>>>BTW, looks like the technique from this mskb is implemented in VFP7 because no Windows messages generated in VFP7 under the same conditions that causes them under VFP6.
>>
>>I've tried this code on Windows NT 4.0 and it didn't give me a Windows error message.
>
>What code we're talking about?
The original code from the first message. I didn't incorporate your suggestion and decided to test on Windows NT (I don't have Windows 2000 here). I'm using VFP6 SP4. diskspace('a:') didn't get me an error on windows NT.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform