Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mabry FTP Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00460429
Message ID:
00460468
Vues:
9
>Hi!
>
>These are the sample codes that I wrote for the FTP Connection...
>
>************************************
>oFtp = CREATEOBJECT("Mabry.FtpXObj")
>oFtp.DebugMode = 1
>oFtp.Blocking = .T.
>oFtp.HOST = "ftp.microsoft.com"
>oFtp.LogonName = "anonymous"
>oFtp.LogonPassword = "test@test.com:
>oFtp.CONNECT
>************************************
>The Done Event Procedure is fired when the control completes an action or method in the oFtp Objects.
>
>The question is:
>
>How would I call or include my procedure in the Done Event Procedures...
>

You'd need to create a custom class in VFP that mirrors the PEMs of the Mabry control, and add code to whatever events you need to hook (in this case, DoneEvent); you could then use VFPCOM (downloadable from msdn.microsoft.com/vfoxpro/downloads) to bind the custom class. You instantiate a copy of the ActiveX control, an instance of your custom VFP class, and an instance of VFPCOM.ComUtil; you use the BindEvents method of the VFPCOM object to bind the VFP class instance to the COM Server instance. There's documentation that accompanies the download.

Since the event only triggers on completion, you have no indication of progress in the operation; you'd probably have better results using wwIPStuff from West-Wind or an ActiveX control that supplies a dialog to present progress and respond to user attempts to cancel the execution.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform