Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress Bar in the COPYFILE (KERNEL32.DLL)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00762948
Message ID:
00762975
Vues:
21
>Hi All!
>
>My co-worker is trying to display a progress bar when a copyfile method in the kernel32.dll is called. The process take to much time and we need some kind of progress indicator to the user. Anybody have some ideas how he can acomplish this?
>
>Thank Again

In addition to Sergey's response there's also the Shell.Application object. Here's a code snippet that shows how easy it is to use.
#DEFINE FOF_NOCONFORMMKDIR = 0x200
#DEFINE FOF_NOCONFIRMATION = 0x010
#DEFINE FOF_SIMPLEPROGRESS = 0x100
* lcSource and lcTarget are the source and target
* folder
oShell = CreateObject("Shell.Application")
oFolder = oShell.Namespace(lctarget)
oFolder.CopyHere(lcSource, FOF_NOCONFORMMKDIR + FOF_NOCONFIRMATION + FOF_SIMPLEPROGRESS)
That should get you started.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform