<?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 : CXTPCalendarCustomDataProvider</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : CXTPCalendarCustomDataProvider]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 23:12:44 +0000</pubDate>
  <lastBuildDate>Thu, 20 Nov 2008 04:51:35 +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=12698</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[CXTPCalendarCustomDataProvider : Thank you, but I solved my problem....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12698&amp;PID=43012&amp;title=cxtpcalendarcustomdataprovider#43012</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=840">sbinder</a><br /><strong>Subject:</strong> 12698<br /><strong>Posted:</strong> 20 November 2008 at 4:51am<br /><br />Thank you, but I solved my problem. I override the CXTPCalendarEvent class and that made problems.]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 04:51:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12698&amp;PID=43012&amp;title=cxtpcalendarcustomdataprovider#43012</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCalendarCustomDataProvider : Look into the sample SQLServerDataProvider...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12698&amp;PID=42937&amp;title=cxtpcalendarcustomdataprovider#42937</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12698<br /><strong>Posted:</strong> 18 November 2008 at 9:21am<br /><br />Look into the sample SQLServerDataProvider and function <FONT size=2>SafeReleaseSQLDataProvider() in <FONT size=2>SQLServerDataProviderDoc file.</FONT></FONT>]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 09:21:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12698&amp;PID=42937&amp;title=cxtpcalendarcustomdataprovider#42937</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCalendarCustomDataProvider : I created my own Data Provider...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12698&amp;PID=42904&amp;title=cxtpcalendarcustomdataprovider#42904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=840">sbinder</a><br /><strong>Subject:</strong> 12698<br /><strong>Posted:</strong> 17 November 2008 at 10:27am<br /><br />I created my own Data Provider derived from <FONT face="Courier New, Courier, mono">CXTPCalendarCostumDataProvider</FONT>. <DIV>(I use <FONT face="Courier New, Courier, mono">CXTPCalendarControl</FONT> without <FONT face="Courier New, Courier, mono">CXTPCalendarControlView</FONT>)&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono"><FONT size=2>m_pData = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CDataProvider();</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>CXTPCalendarResources calRes;</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>CXTPCalendarSchedules* pSchedules = m_pData-GetSchedules();</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>ASSERT(pSchedules);</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono"><FONT color=#0000ff size=2><FONT color=#0000ff size=2>for</FONT></FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> i=0; i&lt;2; ++i){</FONT></FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>&nbsp;pSchedules-&gt;AddNewSchedule("NEU");</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono"><FONT size=2>&nbsp;CXTPCalendarResource *pRes = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CXTPCalendarResource();</FONT></FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>&nbsp;pRes-&gt;SetName("NEU");</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>&nbsp;pRes-&gt;GetSchedules()-&gt;Add(i+1);</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>&nbsp;pRes-&gt;SetDataProvider(m_pData, FALSE);</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>&nbsp;calRes.Add(pRes);</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>}</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>m_pCal-&gt;SetResources(&amp;calRes);</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2>That works fine, but....</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>I am not able to delete my <FONT face="Courier New, Courier, mono">m_pData</FONT> Object. </FONT></FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" size=2>delete m_pData; </FONT></FONT></DIV><DIV><FONT size=2>crashed in</FONT></DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono">CCmdTarget::~CCmdTarget()&nbsp; -&gt; <FONT size=2>ASSERT(m_dwRef &lt;= 1);</FONT></FONT></DIV></FONT><DIV><FONT size=2><FONT size=2>I tried it also with </FONT></FONT></DIV><DIV><FONT size=2><FONT size=2><FONT face="Courier New, Courier, mono" size=2>CMDTARGET_RELEASE(m_pData);</FONT></FONT></FONT></DIV><DIV><FONT size=2>no crash but memory leaks.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Any help&nbsp;about this topic would make me very happy.</FONT></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 17 Nov 2008 10:27:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12698&amp;PID=42904&amp;title=cxtpcalendarcustomdataprovider#42904</guid>
  </item> 
 </channel>
</rss>