<?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 : Help Needed: Explicit Toolkit DLL linking problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Help Needed: Explicit Toolkit DLL linking problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 03:27:34 +0000</pubDate>
  <lastBuildDate>Fri, 01 Jun 2007 16:33:17 +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=7279</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[Help Needed: Explicit Toolkit DLL linking problem : Hi, as far as I know is dynamic...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7279&amp;PID=23376&amp;title=help-needed-explicit-toolkit-dll-linking-problem#23376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 7279<br /><strong>Posted:</strong> 01 June 2007 at 4:33pm<br /><br />Hi,<DIV>as far as I know is dynamic load of MFC extension DLLs a nightmare/impossible.</DIV><DIV>The codejock&nbsp;DLL&nbsp;exposes (MFC) C++&nbsp;classes, not plain stdcall C API functions. The latter are&nbsp;candidates for dynamic load by&nbsp;calling LoadLibrary/GetProcAddress.</DIV><DIV>Explore&nbsp;the DLL using depends e.g. As you&nbsp;will see, classes and methods are somehow cryptic and definition of function pointer types for C++ class functions is almost impossible - not mentioning virtual functions...&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 01 Jun 2007 16:33:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7279&amp;PID=23376&amp;title=help-needed-explicit-toolkit-dll-linking-problem#23376</guid>
  </item> 
  <item>
   <title><![CDATA[Help Needed: Explicit Toolkit DLL linking problem : Oleg,Yes. I did. That fixed compilation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7279&amp;PID=23371&amp;title=help-needed-explicit-toolkit-dll-linking-problem#23371</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2448">cjsnewbie</a><br /><strong>Subject:</strong> 7279<br /><strong>Posted:</strong> 01 June 2007 at 1:48pm<br /><br />Oleg,<br><br>Yes. I did. That fixed compilation error. But when I start my app, even before creating app object, it goes into toolkit dll. Since I'm explicitly linking ,shouldn't it wait until I called LoadLibrary function. Look at call stack. Looks like it's going in DllMain() of toolkit dll. <br><br><br><img src="uploads/20070601_133326_xtpcallstack1.JPG" border="0"><br><br>I guess, it is still not linking explicitly. If you guys have any sample code, I would really appreciate that. <br><br>One more thing: My understanding was that lib file is not required when you link dll explicitly. <br><br>See this: http://msdn2.microsoft.com/en-us/library/ms686944.aspx<br><br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> Because the program uses run-time dynamic linking, it is not necessary to link the module with an import library for the DLL.</td></tr></table><br>]]>
   </description>
   <pubDate>Fri, 01 Jun 2007 13:48:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7279&amp;PID=23371&amp;title=help-needed-explicit-toolkit-dll-linking-problem#23371</guid>
  </item> 
  <item>
   <title><![CDATA[Help Needed: Explicit Toolkit DLL linking problem : Hi, But do you add toolkit lib...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7279&amp;PID=23351&amp;title=help-needed-explicit-toolkit-dll-linking-problem#23351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7279<br /><strong>Posted:</strong> 01 June 2007 at 7:25am<br /><br /><DIV>Hi,</DIV><DIV>But do you add toolkit lib file to project lib dependence?</DIV>]]>
   </description>
   <pubDate>Fri, 01 Jun 2007 07:25:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7279&amp;PID=23351&amp;title=help-needed-explicit-toolkit-dll-linking-problem#23351</guid>
  </item> 
  <item>
   <title><![CDATA[Help Needed: Explicit Toolkit DLL linking problem : Hi,I&amp;#039;m using version 10.3.1....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7279&amp;PID=23346&amp;title=help-needed-explicit-toolkit-dll-linking-problem#23346</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2448">cjsnewbie</a><br /><strong>Subject:</strong> 7279<br /><strong>Posted:</strong> 31 May 2007 at 9:50pm<br /><br />Hi,<br>I'm using version 10.3.1. I was using implicit linking until now. But I want to link explicitly now onwards. I have defined "_XTPLIB_NOAUTOLINK" in preprocessor settings of project. Now I'm getting error as shown below:<br><br><br>-------------------------------<br>Error&nbsp;&nbsp;&nbsp; 23&nbsp;&nbsp;&nbsp; error LNK2019: unresolved external symbol "__declspec(dllimport) public: enum XTPPopupState __thiscall CXTPPopupControl::GetPopupState(void)const " (__imp_?GetPopupState@CXTPPopupControl@@QBE?AW4XTPPopupState@@XZ) referenced in function "long __cdecl PopUpNotify(unsigned int,long)" (?PopUpNotify@@YAJIJ@Z)<br>--------------------------------<br><br><br>I looked at all exported symbols/functions/classes using dumpbin utility provided with Visual Studio. It shows this function is exported as:<br><br><br>-----------------------------------<br>6420 1913 003347DB ?GetPopupState@CXTPPopupControl@@QBE?AW4XTPPopupState@@XZ = @ILT+18390(?GetPopupState@CXTPPopupControl@@QBE?AW4XTPPopupState@@XZ)<br>-----------------------------------<br><br><br>Only difference is __imp_ prepended in first:<br><br>__imp_?GetPopupState@CXTPPopupControl@@QBE?AW4XTPPopupState@@XZ<br><br>as comapared to exported one:<br><br>?GetPopupState@CXTPPopupControl@@QBE?AW4XTPPopupState@@XZ<br><br>Looks like compiler is still looking for import library. How can I fix this problem? <br><br>]]>
   </description>
   <pubDate>Thu, 31 May 2007 21:50:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7279&amp;PID=23346&amp;title=help-needed-explicit-toolkit-dll-linking-problem#23346</guid>
  </item> 
 </channel>
</rss>