Archived Forum Post

Index of archived forum posts

Question:

CkFtp2Progress unreference formal parameter warnings

Jan 26 '16 at 15:08

When i try to inherit from the class just like you show in the exemple (CKFtp2Progress) i get a bunch of unreference formal parameter

z:chilkat-9.5.0-x86-vc6includeckbaseprogress.h(96) : warning C4100: 'pctDone' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckbaseprogress.h(106) : warning C4100: 'value' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckbaseprogress.h(106) : warning C4100: 'name' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckbaseprogress.h(109) : warning C4100: 'task' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(65) : warning C4100: 'pathUtf8' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(67) : warning C4100: 'numBytes' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(67) : warning C4100: 'pathUtf8' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(74) : warning C4100: 'pathUtf8' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(81) : warning C4100: 'pathUtf8' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(83) : warning C4100: 'numBytes' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(83) : warning C4100: 'pathUtf8' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(90) : warning C4100: 'pathUtf8' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(97) : warning C4100: 'pathUtf8' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(104) : warning C4100: 'pathUtf8' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(106) : warning C4100: 'bytesPerSec' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(106) : warning C4100: 'byteCount' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(107) : warning C4100: 'bytesPerSec' : unreferenced formal parameter

z:chilkat-9.5.0-x86-vc6includeckftp2progress.h(107) : warning C4100: 'byteCount' : unreferenced formal parameter

z:vgiupdatesvrmyftpprogress.h(15) : error C2504: 'CKFtp2Progress' : base class undefined


Answer

These warnings can be ignored. There's a setting in the VC6 (or any VC version), likely under "Advanced", where you may list the warning numbers to be ignored. Chilkat make it so these warning don't appear in future versions.


Answer

The Ck*Progress.h headers have been modified to look at follows. This will be available in the next version released...

class CK_VISIBLE_PUBLIC CkFtp2Progress : public CkBaseProgress
{
    public:

CkFtp2Progress() { }
    virtual ~CkFtp2Progress() { }

virtual void BeginDownloadFile(const char *pathUtf8, bool *skip) 
        { 
        bool b = BeginDownloadFile(pathUtf8);
        if (skip) *skip = b;
        }
    virtual bool BeginDownloadFile(const char * /*pathUtf8*/) { return false; }

virtual void EndDownloadFile(const char * /*pathUtf8*/, __int64 /*numBytes*/) { }

virtual void VerifyDownloadDir(const char *pathUtf8, bool *skip) 
        { 
        bool b = VerifyDownloadDir(pathUtf8);
        if (skip) *skip = b;
        }
    virtual bool VerifyDownloadDir(const char * /*pathUtf8*/) { return false; }

virtual void BeginUploadFile(const char *pathUtf8, bool *skip) 
        { 
        bool b = BeginUploadFile(pathUtf8);
        if (skip) *skip = b;
        }
    virtual bool BeginUploadFile(const char * /*pathUtf8*/) { return false; }

virtual void EndUploadFile(const char * /*pathUtf8*/, __int64 /*numBytes*/) { }

virtual void VerifyUploadDir(const char *pathUtf8, bool *skip) 
        { 
        bool b = VerifyUploadDir(pathUtf8);
        if (skip) *skip = b;
        }
    virtual bool VerifyUploadDir(const char * /*pathUtf8*/) { return false; }

virtual void VerifyDeleteDir(const char *pathUtf8, bool *skip) 
        { 
        bool b = VerifyDeleteDir(pathUtf8);
        if (skip) *skip = b;
        }
    virtual bool VerifyDeleteDir(const char * /*pathUtf8*/) { return false; }

virtual void VerifyDeleteFile(const char *pathUtf8, bool *skip) 
        { 
        bool b = VerifyDeleteFile(pathUtf8);
        if (skip) *skip = b;
        }
    virtual bool VerifyDeleteFile(const char * /*pathUtf8*/) { return false; }

virtual void UploadRate(__int64 /*byteCount*/, unsigned long /*bytesPerSec*/) { }
    virtual void DownloadRate(__int64 /*byteCount*/, unsigned long /*bytesPerSec*/) { }

};