Aborting in C++

The technique for aborting any time-consuming Chilkat C++ method call follows this recipe: Declare your own class that derives from the appropriate Chilkat progress monitoring class.  For CkMailMan it is CkMailManProgress (as shown below).  For other Chilkat classes it is CkHttpProgress, CkFtpProgress, CkImapProgress, CkZipProgress, etc. Create an implementation for the …

SendBufferSize/MaxPacketSize can make progress events more frequent in FTP and SSH/SFTP

Question: I’ve downloaded the trial version of your FTP2 ActiveX control. I’m using it in Visual FoxPro 9, but need to have a progress bar to track an upload. When using your asynchronous example code, the progress bar jumps from 0 to 524288 and so on. I need much more …

SFTP Progress Monitoring and Abort (C#)

Here is an example for monitoring the progress of an SFTP file transfer: void sftp_OnPercentDone(object sender, Chilkat.PercentDoneEventArgs args) { progressBar1.Value = args.PercentDone; // To abort at any point, you may set args.Abort = true // args.Abort = true; } void sftp_OnAbortCheck(object sender, Chilkat.AbortCheckEventArgs args) { // See http://cknotes.com/?p=149 for more …

VB.NET HTTP Download with percent-done progress monitoring

Here is an example: Dim WithEvents http As Chilkat.Http Private Sub http_OnPercentDone(ByVal sender As Object, ByVal args As Chilkat.PercentDoneEventArgs) Handles http.OnPercentDone ProgressBar1.Value = args.PercentDone End Sub Private Sub HttpDownloadTest() http = New Chilkat.Http() Dim success As Boolean ‘ Any string unlocks the component for the 1st 30-days. success = http.UnlockComponent(“Anything …

ActiveX Events IDL for (some but not all) Chilkat Components

SFtp: dispinterface _IChilkatSFtpEvents { properties: methods: [id(1), helpstring(“method PercentDone”)] HRESULT PercentDone([in] long pctDone); [id(2), helpstring(“method AbortCheck”)] HRESULT AbortCheck([out] long *abort); [id(3), helpstring(“method UploadRate”)] HRESULT UploadRate([in] long byteCount, [in] long bytesPerSec); [id(4), helpstring(“method DownloadRate”)] HRESULT DownloadRate([in] long byteCount, [in] long bytesPerSec); }; Zip: dispinterface _IChilkatZip2Events { properties: methods: HRESULT UnzipPercentDone([in] long …

ActiveX Events in FoxPro

ActiveX components and controls are used in many programming languages, each of which has it’s own way of handling event callbacks.  This blog post provides helpful hints about how to receive event callbacks from an ActiveX component. To receive the event, you must bind the ActiveX (also referred to as …