Vertefeuille
Messages postés19Date d'inscriptiondimanche 9 janvier 2005StatutMembreDernière intervention20 janvier 2007
-
19 août 2005 à 13:33
BasicInstinct
Messages postés1470Date d'inscriptionmardi 5 février 2002StatutMembreDernière intervention20 octobre 2014
-
19 août 2005 à 21:16
Bonjour à tous,
Voilà mon problème : j'aimerai copier un fichier et visualiser la progression de l'écriture du fichier sur le disque. Il y a bien une technique mais elle est en .NET et en vb6 il y a bien Seek ou Loc mais il faut un numéro de fichier "ouvert". Vu que je n'ouvre aucun fichier (c'est juste une copie), ça me serre à rien.
Public Declare Function CopyFileEx Lib "kernel32.dll" Alias "CopyFileExA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal lpProgressRoutine As Long, lpData As Any, ByRef pbCancel As Long, ByVal dwCopyFlags As Long) As Long
Public bCancel As Long
Public Function CopyProgressRoutine(ByVal TotalFileSize As Currency, ByVal TotalBytesTransferred As Currency, ByVal StreamSize As Currency, ByVal StreamBytesTransferred As Currency, ByVal dwStreamNumber As Long, ByVal dwCallbackReason As Long, ByVal hSourceFile As Long, ByVal hDestinationFile As Long, ByVal lpData As Long) As Long