i am trying the following code for the agenda server,but it keeps giving me an error..leave code -5. if anyone has worked on anything like b4 please let me know..does anyone have a working code?
RAgendaServ* agnServer = RAgendaServ::NewL(); // allocate and construct server
agnServer->Connect(); // connect to the agenda server
CleanupClosePushL(*agnServer); // guarantees that the server's Close() method gets called
CAgnEntryModel* model = CAgnEntryModel::NewL(); // allocate and construct model
model->SetServer(agnServer); // set server pointer for model
model->OpenL(fileName) // Open file using server
// ...Use agenda model API as normal - invokes corresponding server functions
CleanupStack::PopAndDestroy(3); // model, close session with server, agnServer
as mentioned by u i have checked the docs..and according to me..all seems to ok..how to rectify the error now?
it there a way i could find out what the different error codes that i get on the device mean anyways..??