<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic calling a function in a dll in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/calling-a-function-in-a-dll/m-p/974648#M24769</link>
    <description>hi,  &lt;BR /&gt;    &lt;BR /&gt; i want to call a function from a third part dll in my program.i  have tried using intefaces but always end up getting  a link error.Loadlibrary and getprocaddress both return success  values,however the link error persists.Please let me know if  there is a different way of calling the function.    &lt;BR /&gt;--rs</description>
    <pubDate>Tue, 20 Nov 2001 11:57:20 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-11-20T11:57:20Z</dc:date>
    <item>
      <title>calling a function in a dll</title>
      <link>https://community.intel.com/t5/Software-Archive/calling-a-function-in-a-dll/m-p/974648#M24769</link>
      <description>hi,  &lt;BR /&gt;    &lt;BR /&gt; i want to call a function from a third part dll in my program.i  have tried using intefaces but always end up getting  a link error.Loadlibrary and getprocaddress both return success  values,however the link error persists.Please let me know if  there is a different way of calling the function.    &lt;BR /&gt;--rs</description>
      <pubDate>Tue, 20 Nov 2001 11:57:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/calling-a-function-in-a-dll/m-p/974648#M24769</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-11-20T11:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: calling a function in a dll</title>
      <link>https://community.intel.com/t5/Software-Archive/calling-a-function-in-a-dll/m-p/974649#M24770</link>
      <description>If you use LoadLibrary/GetProcAddress, you have to specify a Cray pointer to the dll function: &lt;BR /&gt;&lt;PRE&gt; 
INTERFACE 
   SUBROUTINE DllFoo(... 
END INTERFACE 
POINTER(p_DllFoo, DllFoo) 
... 
p_DllFoo = GetProcAddress(... 
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;...wait, wait, what do you mean a &lt;B&gt;link&lt;/B&gt; error? How can you get link error when calls succeed at run-time? If you mean a run-time error (Access Violation or something), it's probably mismatch in calling convention/arguments. You also have to put appropriate !DEC$ATTRIBUTES STDCALL/C for function name and appropriate !DEC$ATTRIBUTES REFERENCE for arguments if necessary into INTERFACE block. &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Tue, 20 Nov 2001 21:40:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/calling-a-function-in-a-dll/m-p/974649#M24770</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-11-20T21:40:29Z</dc:date>
    </item>
  </channel>
</rss>

