<?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 : Linking problems with DLL</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : Linking problems with DLL]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 01:42:01 +0000</pubDate>
  <lastBuildDate>Tue, 15 May 2007 12:31:25 +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=1583</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[Linking problems with DLL : On top of your source code, after...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1583&amp;PID=22894&amp;title=linking-problems-with-dll#22894</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2997">abbasmsa</a><br /><strong>Subject:</strong> 1583<br /><strong>Posted:</strong> 15 May 2007 at 12:31pm<br /><br />On top of your source code, after the include statements, just add the following lines:<br><br>// dummy functions for XLCall32.lib<br>int far pascal Excel4v(int xlfn, LPXLOPER operRes, int count, LPXLOPER far opers&#091;&#093;)<br>{<br>&nbsp;&nbsp;&nbsp; return 1;<br>}<br>int far _cdecl Excel4(int xlfn, LPXLOPER operRes, int count,... )<br>{<br>&nbsp;&nbsp;&nbsp; return 1;<br>}<br><br><br>]]>
   </description>
   <pubDate>Tue, 15 May 2007 12:31:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1583&amp;PID=22894&amp;title=linking-problems-with-dll#22894</guid>
  </item> 
  <item>
   <title><![CDATA[Linking problems with DLL : I have created an import lib,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1583&amp;PID=4522&amp;title=linking-problems-with-dll#4522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=908">kkoster</a><br /><strong>Subject:</strong> 1583<br /><strong>Posted:</strong> 23 December 2004 at 2:27pm<br /><br />I have created an import lib, using LIB, from a DLL for which I don't have the source. The exports are as follows:<br /><br />2&nbsp;&nbsp;&nbsp;&nbsp;_Excel4<br />3&nbsp;&nbsp;&nbsp;&nbsp;_Excel4v<br />4&nbsp;&nbsp;&nbsp;&nbsp;_LPenHelper<br />1&nbsp;&nbsp;&nbsp;&nbsp;_XLCallVer<br /><br />There are 11 public symbols in the import lib:<br /><br />4 _Excel4<br />5 _Excel4v<br />6 _LPenHelper<br />7 _XLCallVer<br />1 __IMPORT_DESCRIPTOR_XLCALL32<br />2 __NULL_IMPORT_DESCRIPTOR<br />4 __imp__Excel4<br />5 __imp__Excel4v<br />6 __imp__LPenHelper<br />7 __imp__XLCallVer<br />3 &#8962;XLCALL32_NULL_THUNK_DATA<br /><br />I declare the the function within an extern "C" block as:<br />__declspec(dllimport) int __stdcall Excel4v(int xlfn, LPXLOPER operRes, int count, LPXLOPER opers&#091;&#093;);<br /><br />When I attempt to link the object files that are consuming this declaration I get the following linker error:<br /><br />error LNK2019: unresolved external symbol __imp__Excel4v@16 referenced in function "public: static bool __cdecl XL::ExcelAddIn::abort(bool)" (?abort@ExcelAddIn@XL@@SA_N_N@Z)<br /><br />The symbol appears to have an "@16" appended on it when it is formed in the C++ module where it is consumed.<br /><br />Any constructive ideas on how to get around this?]]>
   </description>
   <pubDate>Thu, 23 Dec 2004 14:27:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1583&amp;PID=4522&amp;title=linking-problems-with-dll#4522</guid>
  </item> 
 </channel>
</rss>