<?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 : CXTPCalendarRemindersManager::Dismiss()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : CXTPCalendarRemindersManager::Dismiss()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 19:05:28 +0000</pubDate>
  <lastBuildDate>Mon, 28 Dec 2009 21:26:17 +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=15931</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[CXTPCalendarRemindersManager::Dismiss() : I found the solution. I should...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15931&amp;PID=55880&amp;title=cxtpcalendarremindersmanagerdismiss#55880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4354">mitcheljh</a><br /><strong>Subject:</strong> 15931<br /><strong>Posted:</strong> 28 December 2009 at 9:26pm<br /><br />I found the solution.<br />I should have investigated a little more before posting, sorry.  Rather than remove the post, I think I'll leave it for anyone else with the same issue.<br /><br />I was using...<br /><font color=brown>CXTPCalendarReminders::GetAt(int idx)</font><br />to retrieve the pointer to the reminder I wanted to dismiss.<br />By using this instead...<br /><font color=brown>CXTPCalendarReminders::GetAt(int idx, BOOL withAddRef)</font><br />and passing TRUE, to add an internal reference to the returned reminder, I was able to call dismiss on that reminder without incident.  (I also needed to delete the reminder pointer manually, since I increased the reference for it).<br /><br />I should note also, I'm using my own custom dialog for reminders, which is why I'm needing to call these operations in the first place.<br /><br />Anyway, all is well.<br /><br />Thanks,<br /><br />Mitchel<br />]]>
   </description>
   <pubDate>Mon, 28 Dec 2009 21:26:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15931&amp;PID=55880&amp;title=cxtpcalendarremindersmanagerdismiss#55880</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCalendarRemindersManager::Dismiss() : After having problems dismissing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15931&amp;PID=55878&amp;title=cxtpcalendarremindersmanagerdismiss#55878</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4354">mitcheljh</a><br /><strong>Subject:</strong> 15931<br /><strong>Posted:</strong> 28 December 2009 at 7:48pm<br /><br />After having problems dismissing reminders, I took a look at <br /><font color=brown>CXTPCalendarRemindersManager::Dismiss(CXTPCalendarReminder* pReminder)</font>, <br />and from all indications, the function seems to be operating on a reminder pointer after it has been deleted.<br /><br />In the function, the reminder is first removed from the active reminders array.  Stepping through the RemoveAt() function shows the destructor of the removed reminder is being explicitly called when its removed from the array.  The debugger also shows that reminder as being deallocated.<br /><br />Afterwards, the pointer to the deleted reminder is passed to the _Dismiss() operation, which fails for me, because that object is already deleted. <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" align="middle"> <br /><br />Should I be calling this Dismiss() operation with a cloned reminder?  If so, I can't seem to find a clone operation for this object.<br /><br />Thanks for any help,<br /><br />Mitchel]]>
   </description>
   <pubDate>Mon, 28 Dec 2009 19:48:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15931&amp;PID=55878&amp;title=cxtpcalendarremindersmanagerdismiss#55878</guid>
  </item> 
 </channel>
</rss>