login about faq


Some time ago I developed an application in which I used Chilkat Bundle (C++). Now I want to upgrade to latest versión of Chilkat bundle (C++). I have download chilkat-9.4.0-x86-vc8. Old version I use was chilkat-9.3.2-x86-vc8. I use in my app FTP Download a File with Progress Monitoring but I see that, in the new version, in CkFtp2.h the function GetFile2 is commented. Why? Is there a new way to do it? How can I upgrade to the new version of Chilkat?

Thanks in advance

asked May 24 '13 at 03:09

nomen's gravatar image


I believe progress monitoring in all/most Ck classes is now implemented with the put_EventCallbackObject method.


answered May 24 '13 at 03:14

Gert's gravatar image

Gert ♦

The release notes for 9.4.0 (see http://www.cknotes.com/?cat=100 ) say

(backward compatibility, C++ Zip) The standard way of setting an progress monitoring callback object is via the put_EventCallbackObject method. This applies to all Chilkat C++ classes. The event callback object can be set by passing a pointer to the event callback object, or passing a NULL to suppress event callbacks. Previous to v9.4.0, the CkZip class had two versions of many methods: one where the last argument was a “CkZipProgress ”, and the other where it did not exist. The methods having the last argument of “CkZipProgress ” have been dropped. The event callback must be strictly set via the put_EventCallbackObject method.

The release notes look like they are only for CkZip but in reality they apply to all classes/methods that use progress monitoring.


answered May 24 '13 at 03:24

Gert's gravatar image

Gert ♦

Thank you! I have find a example here. I will work with it.


answered May 24 '13 at 03:29

nomen's gravatar image


The example does use put_EventCallbackObject but also GetFile2 (which doesn't exist anymore). I think Matt didn't properly update the example.

(May 24 '13 at 03:42) Gert ♦

Oops! I need an example that works to make the changes...

(May 24 '13 at 03:51) nomen

I think you can just do ftp.put_EventCallbackObject(yourobject) followed by ftp.GetFile("thefile")

(May 24 '13 at 03:53) Gert ♦

So simple replacement of GetFile2 call to GetFile call. Perfect! I'll do it in the following days

(May 24 '13 at 03:57) nomen
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: May 24 '13 at 03:09

Seen: 1,294 times

Last updated: May 24 '13 at 03:57

powered by OSQA