<?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 : managed C++ &amp; Active-X calendar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : managed C++ &amp; Active-X calendar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:59:47 +0000</pubDate>
  <lastBuildDate>Thu, 05 Oct 2006 12:52:58 +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=5193</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[managed C++ &amp; Active-X calendar : Here is Form1.h file that demonstrates...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5193&amp;PID=16347&amp;title=managed-c-activex-calendar#16347</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2382">hicus</a><br /><strong>Subject:</strong> 5193<br /><strong>Posted:</strong> 05 October 2006 at 12:52pm<br /><br />Here is Form1.h file that demonstrates use of ActiveX calendar with managed C++. Project name is "klinika". Just 1 form and 1 "CalendarControl":<br><br><br>/////////////////////////<br><br>#pragma once<br><br><br>namespace kalendar<br>{<br>&nbsp;&nbsp;&nbsp; using namespace System;<br>&nbsp;&nbsp;&nbsp; using namespace System::ComponentModel;<br>&nbsp;&nbsp;&nbsp; using namespace System::Collections;<br>&nbsp;&nbsp;&nbsp; using namespace System::Windows::Forms;<br>&nbsp;&nbsp;&nbsp; using namespace System::Data;<br>&nbsp;&nbsp;&nbsp; using namespace System::Drawing;<br>&nbsp;&nbsp;&nbsp; using namespace System::Globalization;<br><br>&nbsp;&nbsp;&nbsp; using namespace System::IO;<br><br><br>&nbsp;&nbsp;&nbsp; /// &lt;summary&gt; <br>&nbsp;&nbsp;&nbsp; /// Summary for Form1<br>&nbsp;&nbsp;&nbsp; ///<br>&nbsp;&nbsp;&nbsp; /// WARNING: If you change the name of this class, you will need to change the <br>&nbsp;&nbsp;&nbsp; ///&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Resource File Name' property for the managed resource compiler tool <br>&nbsp;&nbsp;&nbsp; ///&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; associated with all .resx files this class depends on.&nbsp; Otherwise,<br>&nbsp;&nbsp;&nbsp; ///&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the designers will not be able to interact properly with localized<br>&nbsp;&nbsp;&nbsp; ///&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resources associated with this form.<br>&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;<br>public __gc class Form1 : public System::Windows::Forms::Form<br>{&nbsp;&nbsp;&nbsp; <br>public:<br>&nbsp;&nbsp;&nbsp; Form1(void)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; InitializeComponent();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //src/dst for CalendarControl events -&gt; set it on .xml file:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ConnectionString = String::Concat("Provider=XML;Data Source=" , System::Environment::CurrentDirectory-&gt;ToString(), "\\.." );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CalendarControl-&gt;SetDataProvider(String::Concat(ConnectionString,"\\CalendarData.xml"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCalendarData = CalendarControl-&gt;DataProvider;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //if file (xml) exists =&gt; open it for use; else create new one:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!File::Exists(String::Concat(System::Environment::CurrentDirectory-&gt;ToString(),"\\..\\CalendarData.xml")) )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //ujedno kreira i otvara za rad fajl CalendarData.xml:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCalendarData-&gt;Create();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCalendarData-&gt;Open();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CalendarControl-&gt;Populate();<br>&nbsp;&nbsp;&nbsp; }<br><br>protected:<br>&nbsp;&nbsp;&nbsp; void Dispose(Boolean disposing)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (disposing &amp;&amp; components)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; components-&gt;Dispose();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; __super::Dispose(disposing);<br>&nbsp;&nbsp;&nbsp; }<br>// calendar variables:<br>private: Interop::XtremeCalendarControl::CalendarEvent* ptrEvent;<br>private: Interop::XtremeCalendarControl::CalendarDataProvider* pCalendarData;<br>private: AxInterop::XtremeCalendarControl::AxCalendarControl *&nbsp; CalendarControl;<br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Sting used to hold path to save xml data files.&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//This file will contain all of the event information displayed in the calendar view:<br>public: String* ConnectionString; <br><br>private:<br>&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;<br>&nbsp;&nbsp;&nbsp; /// Required designer variable.<br>&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;<br>&nbsp;&nbsp;&nbsp; System::ComponentModel::Container * components;<br><br>&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;<br>&nbsp;&nbsp;&nbsp; /// Required method for Designer support - do not modify<br>&nbsp;&nbsp;&nbsp; /// the contents of this method with the code editor.<br>&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;<br>&nbsp;&nbsp;&nbsp; void InitializeComponent(void)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System::Resources::ResourceManager *&nbsp; resources = new System::Resources::ResourceManager(__typeof(kalendar::Form1));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;CalendarControl = new AxInterop::XtremeCalendarControl::AxCalendarControl();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (__try_cast&lt;System::ComponentModel::ISupportInitialize *&nbsp; &gt;(this-&gt;CalendarControl))-&gt;BeginInit();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;SuspendLayout();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // CalendarControl<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;CalendarControl-&gt;Dock = System::Windows::Forms::DockStyle::Fill;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;CalendarControl-&gt;Location = System::Drawing::Point(0, 0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;CalendarControl-&gt;Name = S"CalendarControl";<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;CalendarControl-&gt;OcxState = (__try_cast&lt;System::Windows::Forms::AxHost::State *&nbsp; &gt;(resources-&gt;GetObject(S"CalendarControl.OcxState")));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;CalendarControl-&gt;Size = System::Drawing::Size(800, 510);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;CalendarControl-&gt;TabIndex = 0;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;CalendarControl-&gt;EventChanged += new AxInterop::XtremeCalendarControl::_DCalendarControlEvents_EventChangedEventHandler(this, CalendarControl_EventChanged);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;CalendarControl-&gt;EventAdded += new AxInterop::XtremeCalendarControl::_DCalendarControlEvents_EventAddedEventHandler(this, CalendarControl_EventAdded);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Form1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;AutoScaleBaseSize = System::Drawing::Size(5, 13);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;ClientSize = System::Drawing::Size(800, 510);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;Controls-&gt;Add(this-&gt;CalendarControl);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;Name = S"Form1";<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;Text = S"Form1";<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (__try_cast&lt;System::ComponentModel::ISupportInitialize *&nbsp; &gt;(this-&gt;CalendarControl))-&gt;EndInit();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;ResumeLayout(false);<br><br>&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; //////////////////////////////////////////////////////////////////////////////<br>&nbsp;&nbsp;&nbsp; //<br><br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;////////////////////////////////////////////////////////////////////<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// You can call this function in constructor for test...<br>private: void AddTestEvents()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// add test events<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;DateTime dtNow = DateTime(DateTime::Now.Ticks);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// Create 1 normal event:<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// Normal Event 1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Interop::XtremeCalendarControl::CalendarEvent* ptrEvent = pCalendarData-&gt;CreateEvent();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ptrEvent-&gt;StartTime = dtNow;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ptrEvent-&gt;EndTime = dtNow.AddHours(1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ptrEvent-&gt;Subject = "Event &amp;Now &#091;Tentative Meeting&#093;";<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ptrEvent-&gt;Location = "MSB - Room 204";<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//ptrEvent-&gt;SetReminderMinutesBeforeStart(10);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ptrEvent-&gt;BusyStatus = Interop::XtremeCalendarControl::CalendarEventBusyStatus::xtpCalendarBusyStatusTentative;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ptrEvent-&gt;MeetingFlag = true;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pCalendarData-&gt;AddEvent(ptrEvent);<br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Saves events to .xml file:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pCalendarData-&gt;Save();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CalendarControl-&gt;Populate();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;///////////////////////////////////////////////////////////<br><br><br>private: System::Void CalendarControl_EventChanged(System::Object *&nbsp; sender, AxInterop::XtremeCalendarControl::_DCalendarControlEvents_EventChangedEvent *&nbsp; e)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;pCalendarData-&gt;Save();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br><br>private: System::Void CalendarControl_EventAdded(System::Object *&nbsp; sender, AxInterop::XtremeCalendarControl::_DCalendarControlEvents_EventAddedEvent *&nbsp; e)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Saves events to TestEvents.xml file<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; pCalendarData-&gt;Save();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br><br>};<br>}<br>/////////////////////////////////////////////////////////////<br>]]>
   </description>
   <pubDate>Thu, 05 Oct 2006 12:52:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5193&amp;PID=16347&amp;title=managed-c-activex-calendar#16347</guid>
  </item> 
  <item>
   <title><![CDATA[managed C++ &amp; Active-X calendar : Hi,Yes, that&amp;#039;s possible....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5193&amp;PID=16227&amp;title=managed-c-activex-calendar#16227</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5193<br /><strong>Posted:</strong> 02 October 2006 at 3:54pm<br /><br />Hi,<br><br>Yes, that's possible. There are no specific examples, but it will be quite similar to out C# Calendar  sample application. You can look at it and compare...<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 02 Oct 2006 15:54:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5193&amp;PID=16227&amp;title=managed-c-activex-calendar#16227</guid>
  </item> 
  <item>
   <title><![CDATA[managed C++ &amp; Active-X calendar : Is it possible to use Xtreme CalendarPro...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5193&amp;PID=16226&amp;title=managed-c-activex-calendar#16226</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2382">hicus</a><br /><strong>Subject:</strong> 5193<br /><strong>Posted:</strong> 02 October 2006 at 3:39pm<br /><br />Is it possible to use Xtreme CalendarPro Active-X control with mannaged C++? <br>Is there any example code of adding calendar events written in C++ concerning Xtreme CalendarPro Active-X control?<br><br><br><strong><a href="forum_topics.asp?FID=36" target="_blank"><strong></strong></a></strong>]]>
   </description>
   <pubDate>Mon, 02 Oct 2006 15:39:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5193&amp;PID=16226&amp;title=managed-c-activex-calendar#16226</guid>
  </item> 
 </channel>
</rss>