<?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 statically linking to V10.40</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Error statically linking to V10.40]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 06:14:25 +0000</pubDate>
  <lastBuildDate>Fri, 29 Dec 2006 02:57:12 +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=5900</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 statically linking to V10.40 : Hi Kukis  Thanks  Merry Christmas. A...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18693&amp;title=error-statically-linking-to-v10-40#18693</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2158">snhd</a><br /><strong>Subject:</strong> 5900<br /><strong>Posted:</strong> 29 December 2006 at 2:57am<br /><br />Hi Kukis<DIV>&nbsp;</DIV><DIV>Thanks </DIV><DIV>Merry Christmas.</DIV><DIV>A very Happy &amp; Prosperous&nbsp;New Year to you &amp; all.</DIV>]]>
   </description>
   <pubDate>Fri, 29 Dec 2006 02:57:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18693&amp;title=error-statically-linking-to-v10-40#18693</guid>
  </item> 
  <item>
   <title><![CDATA[Error statically linking to V10.40 : Thanks. You right. Changed. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18680&amp;title=error-statically-linking-to-v10-40#18680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5900<br /><strong>Posted:</strong> 28 December 2006 at 3:10pm<br /><br />Thanks. You right. Changed.]]>
   </description>
   <pubDate>Thu, 28 Dec 2006 15:10:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18680&amp;title=error-statically-linking-to-v10-40#18680</guid>
  </item> 
  <item>
   <title><![CDATA[Error statically linking to V10.40 : Problem is related to a new handlervoid...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18675&amp;title=error-statically-linking-to-v10-40#18675</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2036">Kukis</a><br /><strong>Subject:</strong> 5900<br /><strong>Posted:</strong> 28 December 2006 at 11:00am<br /><br /><DIV>Problem is related to a new handler<BR>void CXTPStatusBar::OnWindowPosChanged(WINDOWPOS* lpwndpos)<BR>{<BR>&nbsp;&nbsp; CControlBar::OnWindowPosChanged(lpwndpos);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; if (GetPaintManager()-&gt;BaseTheme() == xtpThemeRibbon)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp; ...........<BR>&nbsp;&nbsp; }<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Roots of the problem are GetPaintManager() call. It can return 0 if m_bCommandBarsTheme == FALSE<BR>(at least i'm using this style, had to make quick fix myself)</DIV><DIV>&nbsp;</DIV><DIV>CXTPPaintManager* CXTPStatusBar::GetPaintManager() const<BR>{<BR>&nbsp;&nbsp; if (!m_bCommandBarsTheme)&nbsp; &lt;---------------------- here<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return NULL;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; if (m_pCommandBars)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return m_pCommandBars-&gt;GetPaintManager();<BR>&nbsp;&nbsp; return XTPPaintManager();<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Quick solution would be to change library and recompile, or add your own status bar and add handler<BR>ON_WM_WINDOWPOSCHANGED() with check for NULL return:</DIV><DIV>&nbsp;</DIV><DIV>void CStatusBarEx::OnWindowPosChanged(WINDOWPOS* lpwndpos)<BR>{<BR>&nbsp;&nbsp; CControlBar::OnWindowPosChanged(lpwndpos);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; CXTPPaintManager* pManager = GetPaintManager();<BR>&nbsp;&nbsp; if (pManager &amp;&amp; pManager-&gt;BaseTheme() == xtpThemeRibbon)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp; ...............<BR>&nbsp;&nbsp; }<BR>}<BR></DIV>]]>
   </description>
   <pubDate>Thu, 28 Dec 2006 11:00:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18675&amp;title=error-statically-linking-to-v10-40#18675</guid>
  </item> 
  <item>
   <title><![CDATA[Error statically linking to V10.40 : I can&amp;#039;t reproduce :( Maybe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18589&amp;title=error-statically-linking-to-v10-40#18589</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5900<br /><strong>Posted:</strong> 24 December 2006 at 9:15am<br /><br />I can't reproduce :( Maybe you didn't add toolkt resources.<DIV>&nbsp;</DIV><DIV>in GUI_Outlook&nbsp; try also add to res\GUI_Outlook.rc2" before #include "CodejockSample.rc"</DIV><DIV>#define _XTP_STATICLINK </DIV>]]>
   </description>
   <pubDate>Sun, 24 Dec 2006 09:15:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18589&amp;title=error-statically-linking-to-v10-40#18589</guid>
  </item> 
  <item>
   <title><![CDATA[Error statically linking to V10.40 : First-chance exception in app.exe:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18577&amp;title=error-statically-linking-to-v10-40#18577</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2158">snhd</a><br /><strong>Subject:</strong> 5900<br /><strong>Posted:</strong> 23 December 2006 at 12:28pm<br /><br /><P>First-chance exception in app.exe: 0xC0000005: Access Violation.<BR>I am statically linking to CodeJock Lib. with #define _XTP_STATICLINK<BR>when I compile GUI_Outlook sample in VC6.0 with #define _XTP_STATICLINK it also asserts</P><DIV>When I link with V10.31 everything works just fine.</DIV><DIV>&nbsp;</DIV><DIV>The problem occurs while resizing the app.</DIV><DIV>void CMainFrame::OnSize(UINT nType, int cx, int cy) <BR>{<BR>&nbsp;CXTPFrameWnd::OnSize(nType, cx, cy);<BR>}</DIV><P><BR>CXTPStatusBar.cpp<BR>void CXTPStatusBar::OnWindowPosChanged(WINDOWPOS* lpwndpos)<BR>{<BR>&nbsp;CControlBar::OnWindowPosChanged(lpwndpos);</P><P>&nbsp;if (GetPaintManager()-&gt;BaseTheme() == xtpThemeRibbon)<BR>&lt;Access violation on the above line&gt;</P><P>Output of Call Stack from my application :<BR>CXTPStatusBar::OnWindowPosChanged(tagWINDOWPOS * 0x0012dffc) line 1360 + 14 bytes<BR>CWnd::OnWndMsg(unsigned int 71, unsigned int 0, long 1236988, long * 0x0012dc2c) line 1954<BR>CXTPStatusBar::OnWndMsg(unsigned int 71, unsigned int 0, long 1236988, long * 0x0012dc2c) line 1439<BR>CWnd::WindowProc(unsigned int 71, unsigned int 0, long 1236988) line 1585 + 30 bytes<BR>CControlBar::WindowProc(unsigned int 71, unsigned int 0, long 1236988) line 480 + 20 bytes<BR>AfxCallWndProc(CWnd * 0x00345d50 {CXTPStatusBar hWnd=???}, HWND__ * 0x0001036c, unsigned int 71, unsigned int 0, long 1236988) line 215 + 26 bytes<BR>AfxWndProc(HWND__ * 0x0001036c, unsigned int 71, unsigned int 0, long 1236988) line 368<BR>AfxWndProcBase(HWND__ * 0x0001036c, unsigned int 71, unsigned int 0, long 1236988) line 220 + 21 bytes<BR></P><DIV></DIV>Best Regards]]>
   </description>
   <pubDate>Sat, 23 Dec 2006 12:28:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5900&amp;PID=18577&amp;title=error-statically-linking-to-v10-40#18577</guid>
  </item> 
 </channel>
</rss>