<?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 : Error when used in combinati&#111;n with XTP</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Error when used in combinati&#111;n with XTP]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 17:54:36 +0000</pubDate>
  <lastBuildDate>Mon, 23 May 2005 07:33:57 +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=2248</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[Error when used in combinati&#111;n with XTP : Hi Serge, yes I already did that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6723&amp;title=error-when-used-in-combination-with-xtp#6723</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 23 May 2005 at 7:33am<br /><br /><P>Hi Serge,</P><P>yes I already did that as a workaround but I think the above implementation is nicer. Besides I don't understand why the error occurs. It doesn't make sense to me.</P><P>But for now it works...</P><P>Cheers,<BR>Martin</P>]]>
   </description>
   <pubDate>Mon, 23 May 2005 07:33:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6723&amp;title=error-when-used-in-combination-with-xtp#6723</guid>
  </item> 
  <item>
   <title><![CDATA[Error when used in combinati&#111;n with XTP : Martin,    Try moving your resizing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6722&amp;title=error-when-used-in-combination-with-xtp#6722</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 23 May 2005 at 7:28am<br /><br />Martin,<br /><br />  Try moving your resizing code to OnSize message handler, like in CCalendarDemoView::OnSize. Does this approach works?<br /><br />--<br />WBR, <br />Serge]]>
   </description>
   <pubDate>Mon, 23 May 2005 07:28:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6722&amp;title=error-when-used-in-combination-with-xtp#6722</guid>
  </item> 
  <item>
   <title><![CDATA[Error when used in combinati&#111;n with XTP :  One small question though, why...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6720&amp;title=error-when-used-in-combination-with-xtp#6720</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 23 May 2005 at 4:20am<br /><br /><FONT size=1><P>One small question though, why doesn't this work?</P><P>It crashes my app at the following line:</P><FONT color=#0000ff size=1><P>void</FONT><FONT size=1> CXTPCalendarControl::AdjustLayout()<BR>{<BR></FONT><FONT size=1>&nbsp;&nbsp; CRect rc;</P><P>&nbsp;&nbsp; GetClientRect(&amp;rc);</P><P></FONT><FONT color=#0000ff size=1>&nbsp;&nbsp; if</FONT><FONT size=1> (!rc.IsRectEmpty())<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pActiveView-&gt;AdjustLayout(rc, TRUE); <strong>// CRASH HAPPENS HERE!</strong><BR>&nbsp;&nbsp; }<BR></FONT><FONT size=1>}</FONT></P><P><FONT size=1><strong>My code:</strong></P></FONT><P>CRect rc;<BR>m_wndPlaceholder.GetWindowRect( &amp;rc );<BR>ScreenToClient( &amp;rc );</P><P></FONT><FONT color=#0000ff size=1>if</FONT><FONT size=1>  (!m_wndCalendar.Create(WS_CHILD|WS_VISIBLE|WS_TABSTOP|WS_BOR DER, rc, </FONT><FONT color=#0000ff size=1>this</FONT><FONT size=1>, 333))<BR></FONT><FONT color=#0000ff size=1>return</FONT><FONT size=1> -1;</FONT></P><P><FONT size=1>I need to declare the rectangle as CRect(0, 0, 0, 0) instead of my above approach.</FONT></P><P><FONT size=1>Can anybody shed some light on this issue?</FONT></P><P><FONT size=1>Thanks,<BR>Martin</FONT><FONT size=1></P></FONT>]]>
   </description>
   <pubDate>Mon, 23 May 2005 04:20:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6720&amp;title=error-when-used-in-combination-with-xtp#6720</guid>
  </item> 
  <item>
   <title><![CDATA[Error when used in combinati&#111;n with XTP : I got it to work!!!!  Thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6719&amp;title=error-when-used-in-combination-with-xtp#6719</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 23 May 2005 at 4:04am<br /><br /><P>I got it to work!!!! <IMG src="http://forum.codejock.com/smileys/smiley4.gif" border="0"></P><P>Thanks a lot, now I only need to do some resizing and repositioning in my dialog but at least the calendar component shows up AND in combination with the Xtreme Toolkit!</P><P>Thanks again for all your help guys! <IMG src="http://forum.codejock.com/smileys/smiley32.gif" border="0"></P>]]>
   </description>
   <pubDate>Mon, 23 May 2005 04:04:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6719&amp;title=error-when-used-in-combination-with-xtp#6719</guid>
  </item> 
  <item>
   <title><![CDATA[Error when used in combinati&#111;n with XTP : you need to add resource of calendar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6709&amp;title=error-when-used-in-combination-with-xtp#6709</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 20 May 2005 at 10:10am<br /><br /><P>you need to add resource of calendar and toolkitpro.</P><P>&nbsp;</P><P>add </P><P>#include "XTToolkitPro.rc" and</P><P>#include "XTCalendarPro.rc"</P><P>&nbsp;</P><P>to your rc2 file.</P>]]>
   </description>
   <pubDate>Fri, 20 May 2005 10:10:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6709&amp;title=error-when-used-in-combination-with-xtp#6709</guid>
  </item> 
  <item>
   <title><![CDATA[Error when used in combinati&#111;n with XTP : And another addition, I just tried...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6704&amp;title=error-when-used-in-combination-with-xtp#6704</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 20 May 2005 at 8:37am<br /><br /><P>And another addition, I just tried to make a new MFC dialog based app, and included the calendar control in the stdafx.h file (nothing more nothing less).</P><P>Now when I compile and run it there's no problem, but when I declare a variable for the calendar component it also crashes.</P><P>Am I perhaps overlooking something?</P>]]>
   </description>
   <pubDate>Fri, 20 May 2005 08:37:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6704&amp;title=error-when-used-in-combination-with-xtp#6704</guid>
  </item> 
  <item>
   <title><![CDATA[Error when used in combinati&#111;n with XTP : Oleg, thanks for your reply but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6703&amp;title=error-when-used-in-combination-with-xtp#6703</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 20 May 2005 at 8:20am<br /><br /><P>Oleg, thanks for your reply but I already sent you an e-mail explaining that that didn't work as well. In case you didn't get it, here's the mail:</P><DIV><FONT face=Arial size=2><SPAN =273541107-20052005>Hi Oleg, Hi Coleen,</SPAN></FONT></DIV><DIV><FONT face=Arial size=2><SPAN =273541107-20052005></SPAN></FONT>&nbsp;</DIV><DIV><FONT face=Arial size=2><SPAN =273541107-20052005>thanks for your efforts so far.</SPAN></FONT></DIV><DIV><FONT face=Arial size=2><SPAN =273541107-20052005></SPAN></FONT>&nbsp;</DIV><DIV><FONT face=Arial><SPAN =273541107-20052005><FONT size=2>Oleg you're right, when I add this line: <SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">#define</SPAN><FONT face="Courier New"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <FONT color=black><SPAN style="COLOR: black">_XTP_STATICLINK</SPAN></FONT></SPAN></FONT></FONT></SPAN></FONT></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>the linker errors do not occur anymore.</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p></o:p></SPAN></FONT></SPAN></SPAN><FONT size=2>&nbsp;</FONT></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>However, when I fire up the window that has the component declared the application</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>crashes. It's only declared in&nbsp;a class, it's not initialized yet and not referenced to in</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>my source. So it crashes only because of the declaration of the CXTPCalendarControl.</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p></o:p></SPAN></FONT></SPAN></SPAN><FONT size=2>&nbsp;</FONT></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>I forgot to mention (but I did on the topic on the forum I started) that the problems only</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>occur (before I added the _XTP_STATICLINK macro) AFTER I declared the above variable</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>in my class. If I do not do this and just include both the toolkit as the calendar component</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>the application compiles and links fine. But when I declare the variable again the problems</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>re-occur.</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p></o:p></SPAN></FONT></SPAN></SPAN><FONT size=2>&nbsp;</FONT></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>Hope this is useful and thanks a lot for your efforts so far, I hope we can resolve this issue</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>soon.</o:p></SPAN></FONT></SPAN></SPAN></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p></o:p></SPAN></FONT></SPAN></SPAN><FONT size=2>&nbsp;</FONT></DIV><DIV><SPAN =273541107-20052005><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial color=black><SPAN style="COLOR: black"><o:p>Looking forward to your response, thanks again.</o:p></SPAN></FONT></SPAN></SPAN></DIV>]]>
   </description>
   <pubDate>Fri, 20 May 2005 08:20:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6703&amp;title=error-when-used-in-combination-with-xtp#6703</guid>
  </item> 
  <item>
   <title><![CDATA[Error when used in combinati&#111;n with XTP : Try to link both statically. add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6702&amp;title=error-when-used-in-combination-with-xtp#6702</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 20 May 2005 at 8:09am<br /><br /><P>Try to link both statically.</P><P>add </P><P>#define _XTP_STATICLINK before <strong>#include &lt;XTToolkitPro.h&gt;</strong></P>]]>
   </description>
   <pubDate>Fri, 20 May 2005 08:09:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6702&amp;title=error-when-used-in-combination-with-xtp#6702</guid>
  </item> 
  <item>
   <title><![CDATA[Error when used in combinati&#111;n with XTP : One more addition to my previous...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6683&amp;title=error-when-used-in-combination-with-xtp#6683</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 19 May 2005 at 9:15am<br /><br /><P>One more addition to my previous post.</P><P>The errors do not occur the moment I include the calendar component in my stdafx.h file, but when I define a variable in my class for the component as follows:</P><P>CXTPCalendarControl m_wndCalendar;</P><P>The moment I include this line the linker errors occur.</P><P>Cheers,<BR>Martin</P>]]>
   </description>
   <pubDate>Thu, 19 May 2005 09:15:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6683&amp;title=error-when-used-in-combination-with-xtp#6683</guid>
  </item> 
  <item>
   <title><![CDATA[Error when used in combinati&#111;n with XTP : Hi, first of all, thanks for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6682&amp;title=error-when-used-in-combination-with-xtp#6682</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2248<br /><strong>Posted:</strong> 19 May 2005 at 8:53am<br /><br /><P>Hi,</P><P>first of all, thanks for your reply. But I am a bit confused here. I don't want to include the toolkit in the demo calendar application but I have an application which already has the xtreme toolkit included and up and running and now I want to include the calendar control in that application.</P><P>This is what I've tried so far:</P><UL><LI>I've copied last XTPDrawHelpers.cpp/ XTPDrawHelpers.h from Calendar Package to ToolkitPro (according to mail from Coleen Stowell)</LI><LI>I then rebuilt the library, rebuilt my app,&nbsp;but no luck</LI><LI>I then installed the XTP beta version, rebuilt my app, but still no luck</LI><LI>I then uninstalled everything CodeJock related and rebooted my system. I then installed the XTP beta kit first, and then the calendar component.</LI><LI>Then I rebuilt my whole project once again (is getting pretty tiresome) and still no luck.</LI></UL><P>I included this line:</P><P><B>#include &lt;XTCalendarPro.h&gt;</B></P><P><strong><EM><U>after</U></EM></strong> I included this line:</P><P><strong>#include &lt;XTToolkitPro.h&gt;</strong></P><P>I also tried some of the stuff from your post (but not all since not everything applies to my application being it not the sample application).</P><P>Nothing seems to work, I am really at a loss here. Why is it not possible to simply use both kits simultaneously? And why is the calendar component not standard included in the beta toolkit? Then I wouldn't be having this problem in the first place.</P><P>I really hope that someone can help me out here.</P><P>Thanks in advance.<BR><BR>Best regards,<BR>Martin<BR><BR></P>]]>
   </description>
   <pubDate>Thu, 19 May 2005 08:53:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2248&amp;PID=6682&amp;title=error-when-used-in-combination-with-xtp#6682</guid>
  </item> 
 </channel>
</rss>