problem in calendar APIs
| Tue, 2008-03-11 06:05 | |
|
Hi, I am trying to make an application that will read the store the reminders in the calendar. I read the sdk help provided for it and also hav gone through the sample program provided in Examples->AppEngine->Calinterimapi but when i try to modify my helloworld program using this, i am getting errors. I wrote the following code in HandleCommandL(): CCalSession* calSession = CCalSession::NewL(); //----- create a view for the entry //------ creating a new event] delete calSession; and I am getting the following errors: 1) 'CCalSession::NewL()' (static) [ in line no. 203] Please help.. thanx |
|






Forum posts: 155
Hi
Please check this line again
CCalEntry* calEntry=calSession->NewL(CCalEntry::EEvent, uid, CCalEntry::EMethodNone, 0);
I think it should be like this
CCalEntry* calEntry=CCalEntry :: NewL(CCalEntry::EEvent, uid, CCalEntry::EMethodNone, 0); // As NewL is a static method moreover u are using calSession->NewL // here is newl is also a static method and moreover it'll return the object of CCalSession instead of CCalEntry.
Hope it'll work .
Regards,
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".