Unicode C
Unicode C
Get Version of Chilkat
Demonstrate how to find out the version of Chilkat at runtime.Chilkat Unicode C Downloads
#include <C_CkSFtpW.h>
#include <C_CkJsonObjectW.h>
void ChilkatSample(void)
{
HCkSFtpW sftp;
const wchar_t *chilkatVersion;
HCkJsonObjectW json;
// Most Chilkat classes include a Version property.
// To find the version of Chilkat, such as "9.5.0.94",
// instantiate the object and examine the Version property.
// For example:
sftp = CkSFtpW_Create();
chilkatVersion = CkSFtpW_version(sftp);
wprintf(L"%s\n",chilkatVersion);
// Most other Chilkat classes also have the Version property
// For example:
json = CkJsonObjectW_Create();
wprintf(L"%s\n",CkJsonObjectW_version(json));
CkSFtpW_Dispose(sftp);
CkJsonObjectW_Dispose(json);
}