Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mabry FTP/X Control
Message
De
01/10/2004 10:29:43
 
 
À
30/09/2004 21:24:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00947799
Message ID:
00947937
Vues:
23
Hi Robert,

there's a video on this in the Groove COM2.NET space (one of the courses you enrolled in, for those lurking): basically, the work is done for you when you make the Object Browser your friend.

Hank

>I have been successful in getting Mabry FTP/X Control loaded as a COM object in VFP 9 Beta and have also been able to process uploads and downloads using this FTP functionality. I'm downloading some files that are pushing 30 meg on a pretty slow LAN connection, therefore, as the download progresses ... the system "looks like" it is hung with only the hourglass showing. I would like to show in a WAIT WINDOW the progress of the download. In the Mabry documentation, I have read about "Interfaces" that seem to be able to accomplish what I want to do. The examples are given in Visual Basic as follows:
>-----------------------------------------------------------------------------
>Private Sub IFtpXObjNotify_Progress(ByRef FtpXObject As IFtpXObj, ByVal BytesTransfered As Long)
>
>The syntax of the Progress method has these parts:
>
>Part :Description
>FtpXObject : Required. An object reference to the FTP/X component calling this method.
>BytesTransfered : Required. A long integer indicating the number of bytes transferred thus far.
>
>Remarks
>During file transfers the Progress event is periodically fired. The BytesTransferred argument lets you know how many bytes have been transferred as of the time the Progress event was fired.
>-----------------------------------------------------------------------------
>I've read in the FoxPro Help files about "Interfaces & COM" objects and it appears that I could incorporate this Mabry "progress" functionality using FoxPro's new "BindEvent" functionality but I'm lost on exactly what's needed to set this up in VFP and how to convert the Visual Basic code into VFP code.
>
>Any help would be greatly appreciated. BTW .. if you read this and reply, I'm definately "over my head" so be very complete in your explanation or I'll just get further confused! :)
>
>Thanks,
>Robert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform