Sample code for 30+ languages & platforms
C++

Transition from MailMan.GetUidls to MailMan.FetchUidls

Provides instructions for replacing deprecated GetUidls method calls with FetchUidls.

Chilkat C++ Downloads

C++
#include <CkMailMan.h>
#include <CkStringArray.h>
#include <CkStringTable.h>

void ChilkatSample(void)
    {
    bool success = false;

    CkMailMan mailman;

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  The GetUidls method is deprecated:

    CkStringArray *sa = mailman.GetUidls();
    if (mailman.get_LastMethodSuccess() == false) {
        std::cout << mailman.lastErrorText() << "\r\n";
        return;
    }

    //  ...
    //  ...

    delete sa;

    //  ------------------------------------------------------------------------
    //  Do the equivalent using FetchUidls.
    //  Your application creates a new, empty StringTable object which is passed 
    //  in the last argument and filled upon success.

    CkStringTable st;
    success = mailman.FetchUidls(st);
    if (success == false) {
        std::cout << mailman.lastErrorText() << "\r\n";
        return;
    }
    }