<?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 : Static VS Dynamic linking</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Static VS Dynamic linking]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 12:33:07 +0000</pubDate>
  <lastBuildDate>Fri, 18 Jan 2008 05:45: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=9346</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[Static VS Dynamic linking : Hi; In Codejocks users help you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9346&amp;PID=30263&amp;title=static-vs-dynamic-linking#30263</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9346<br /><strong>Posted:</strong> 18 January 2008 at 5:45am<br /><br />Hi;<DIV>In Codejocks users help you find a section about statically linking...</DIV><DIV>Here's the solution:</DIV><DIV>&nbsp;</DIV><DIV><strong>Question:</strong> <DIV style="PADDING-LEFT: 20px; PADDING-BOTTOM: 20px">How do I statically link with Xtreme Toolkit Pro and when statically linked to MFC?</DIV><B>Answer:</B> <DIV style="PADDING-LEFT: 20px">Follow these steps to statically link with the Xtreme Toolkit Professional Version:</DIV><OL><LI style="PADDING-BOTTOM: 10px">Change your project settings to “Use MFC in a Static Library”. This is found on the “General” tab in your project settings dialog. <LI style="PADDING-BOTTOM: 10px">Change your “C/C++ Code Generation” to use either “Multithreaded” or “Debug Multithreaded” run-time library. For release builds use the “Multithreaded” (non DLL) run-time library. For debug builds use “Debug Multithreaded” (non DLL) run-time library. <LI style="PADDING-BOTTOM: 10px">Some libraries are incompatible when statically linking to MFC. On the link tab under input settings you will need to ignore the following libraries. <DIV style="PADDING-LEFT: 20px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">For <B>“Multithreaded”</B> add the following to the “Ignore libraries” list:<BR>libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib</DIV><DIV style="PADDING-LEFT: 20px; PADDING-BOTTOM: 10px">For <B>“Debug Multithreaded”</B> add the following to the “Ignore libraries” list:<BR>libc.lib, libcmt.lib, msvcrt.lib, libcmtd.lib, msvcrtd.lib</DIV>See Linker Tools Warning LNK4098 in MSDN for more details. <LI style="PADDING-BOTTOM: 10px"><FONT color=#0000ff><strong>Add the following line to your application's <CODE>.rc2</CODE> file. This will link in the toolkit resources so they are available to your application. </strong></FONT><DIV style="PADDING-TOP: 10px"><FONT color=#0000ff><strong>Xtreme Toolkit Pro:<BR></strong></FONT><DIV =Element101><DIV =Element100><PRE =Element100><FONT color=#0000ff><strong>#include &lt;XTToolkitPro.rc&gt;</strong></FONT></PRE></DIV></DIV>Xtreme Suite:<BR><DIV =Element101><DIV =Element100><PRE =Element100>#include &lt;XTSuitePro.rc&gt;</PRE></DIV></DIV></DIV></LI></OL></DIV>]]>
   </description>
   <pubDate>Fri, 18 Jan 2008 05:45:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9346&amp;PID=30263&amp;title=static-vs-dynamic-linking#30263</guid>
  </item> 
  <item>
   <title><![CDATA[Static VS Dynamic linking : We are using XtremeToolkitPro_v10.3.1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9346&amp;PID=30262&amp;title=static-vs-dynamic-linking#30262</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3669">Usha</a><br /><strong>Subject:</strong> 9346<br /><strong>Posted:</strong> 18 January 2008 at 4:48am<br /><br />We are using XtremeToolkitPro_v10.3.1 and I am using classes <FONT size=2>CXTShellList and <FONT size=2>CXTShellTree to simulate Windows Explorer folder view.<DIV></DIV><DIV></DIV><DIV></DIV>When I statically link with CodeJock I get lot of assertions, esp. resource related. <DIV>&nbsp;</DIV><DIV>Example : </DIV><DIV>File XTHeaderCtrl.cpp, Line 585,</DIV><DIV>&nbsp;</DIV><DIV>CMenu menu;<BR>VERIFY(XTPResourceManager()-&gt;LoadMenu(&amp;menu, XT_IDM_POPUP))</DIV><DIV>&nbsp;</DIV><DIV>This fails.</DIV><DIV>&nbsp;</DIV><DIV>If I link dynamically, then I do not see these problems.</DIV><DIV>&nbsp;</DIV><DIV>All I did was defined the following in my header file to make it link statically.</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#008000 size=2>#define _XTP_STATICLINK</FONT></DIV><DIV><FONT color=#008000><FONT color=#0000ff size=2>#include</FONT><FONT color=#000000 size=2> &lt;XTToolkitPro.h&gt; </FONT><FONT color=#008000 size=2>// Codejock Software Components</FONT></FONT></DIV><DIV><FONT color=#008000><FONT color=#008000 size=2>&nbsp;</DIV></FONT></FONT><DIV><FONT color=#008000>Am I missing anything? Can someone please explain.</FONT></DIV><DIV><FONT color=#008000></FONT>&nbsp;</DIV><DIV><FONT color=#008000>thanks</FONT></DIV><DIV><FONT color=#008000></FONT>&nbsp;</DIV><DIV><FONT color=#008000 size=2>&nbsp;</DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 18 Jan 2008 04:48:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9346&amp;PID=30262&amp;title=static-vs-dynamic-linking#30262</guid>
  </item> 
 </channel>
</rss>