Regarding Week Mode. DoRetriveDayEvents Problem? |
Post Reply |
Author | |
KumarCJ
Groupie Joined: 02 April 2007 Location: India Status: Offline Points: 96 |
Post Options
Thanks(0)
Posted: 28 April 2008 at 8:32am |
Hello, We are using custom data provider for calendar control. Flow is below: From View class void fun1() SwitchActiveView calls DoRetrieveDayEvents CXTPCalendarEventsPtr CCalendarDataProviderSQL::DoRetrieveDayEvents(COleDateTime dtDay) /*CXTPCalendarEventsPtr ptrEvents; Define in .h file as member variable of class*/ ptrEvents = new CXTPCalendarEvents(); we are calling views function from "DoRetrieveDayEvents()" who retrive the data from our database and add data as events void MyView::GetEventsFromWeekData(CXTPCalendarEventsPtr& ptrEvents) for(i=0;i<7;i++) ptrEvent = pCalendarData->CreateNewEvent(); ISSUE: I had added 3 days data, but after ignoring the crash, it show me first day of week data only. Please help me out in this. Thanks, |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |