<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : [Solved] Calendar event not being updated</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : [Solved] Calendar event not being updated]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 12:44:18 +0000</pubDate>
  <lastBuildDate>Wed, 04 Mar 2009 07:44:31 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=13573</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[[Solved] Calendar event not being updated : ChangeEvent returns FALSE in bTest...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13573&amp;PID=46247&amp;title=solved-calendar-event-not-being-updated#46247</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5021">jordi</a><br /><strong>Subject:</strong> 13573<br /><strong>Posted:</strong> 04 March 2009 at 7:44am<br /><br />ChangeEvent returns FALSE in bTest (see code below).. I've no idea because I only change the reminder minuts before start. I hope you can help me to solve the problem. Thanks.<br /><br />Platform: Windows XP (32bit) - SP 3<br />Product: Xtreme Calendar Pro 2007 Vol 2 (MFC) (11.2.2)<br />Language: C++/MFC-8.0<br /><br />XXXXX::XXXXX()<br />{<br />  m_Sink.Advise(m_wndCalendar.GetConnection(), XTP_NC_CALENDAR_ON_REMINDERS, &CCalendar::OnReminders);<br />}<br /><br />void XXXXX::OnReminders(XTP_NOTIFY_CODE Event, WPARAM wParam , LPARAM lParam)<br />{<br />  CXTPCalendarRemindersManager *calRemindersManager = m_wndCalendar.GetRemindersManager();<br />  CXTPCalendarReminders calRemindersL;<br />  CXTPCalendarReminder *pcalReminder;<br />  CXTPCalendarEventPtr cEvent;<br /><br />  calRemindersManager-&gt;GetActiveReminders(calRemindersL);<br /><br />  for (int i = 0; i &lt; calRemindersL.GetCount(); i++)<br />  {<br />&nbsp;&nbsp;&nbsp;&nbsp;pcalReminder = calRemindersL.GetAt(i);<br />&nbsp;&nbsp;&nbsp;&nbsp;cEvent = pcalReminder-&gt;GetEvent();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;//discard old events<br />&nbsp;&nbsp;&nbsp;&nbsp;if (cEvent-&gt;GetEndTime() &lt; COleDateTime::GetCurrentTime())<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pcalReminder-&gt;Dismiss();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if (cEvent-&gt;GetReminderMinutesBeforeStart() == 1)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cEvent-&gt;SetReminderMinutesBeforeStart(0);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL bTest = m_wndCalendar.GetDataProvider()-&gt;ChangeEvent(cEvent);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;pcalReminder-&gt;Dismiss();<br />  }<br />}<br /><br /><br />Events were created with SetReminderMinutsBeforeStart(1).<br /><br />&#091;Solved&#093;<br />In all test cases the event I was trying to modify was modifing the recurrence pattern instead of the Ocurrence.]]>
   </description>
   <pubDate>Wed, 04 Mar 2009 07:44:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13573&amp;PID=46247&amp;title=solved-calendar-event-not-being-updated#46247</guid>
  </item> 
 </channel>
</rss>