<?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 Quote:Steve wrote: in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053993#M115921</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I have Compaq Fortran running on a Windows XP machine where I can compile a DLL from Fortran code. I then call this DLL from VB 6 and VB.net without problems. I include dforrt.dll in the directory where the VB project exists.&lt;/P&gt;

&lt;P&gt;Below I created a very simple Intel Fortran DLL, which when I try to call from VB.net I get an error message that the DLL cannot be found.&lt;/P&gt;

&lt;P&gt;Could you please tell me what I would need to do in order to create a Fortran DLL that can be called from VB.net?&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;"DLL not found" errors are very often due to some DLL dependencies that are missing on the path. &amp;nbsp;In your case, you may have run-time dependencies (similar to dforrt.dll with Compaq Fortran) for which you may need to take extra steps. &amp;nbsp;Take a look at these topics:&amp;nbsp;https://software.intel.com/en-us/forums/topic/275632,&amp;nbsp;https://software.intel.com/en-us/forums/topic/533439, and&amp;nbsp;https://software.intel.com/en-us/forums/topic/506625.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2014 22:59:40 GMT</pubDate>
    <dc:creator>FortranFan</dc:creator>
    <dc:date>2014-11-11T22:59:40Z</dc:date>
    <item>
      <title>FORTRAN DLL called from VB.net</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053990#M115918</link>
      <description>&lt;P&gt;I have Compaq Fortran running on a Windows XP machine where I can compile a DLL from Fortran code. I then call this DLL from VB 6 and VB.net without problems. I include dforrt.dll in the directory where the VB project exists.&lt;/P&gt;

&lt;P&gt;Below I created a very simple Intel Fortran DLL, which when I try to call from VB.net I get an error message that the DLL cannot be found.&lt;/P&gt;

&lt;P&gt;Could you please tell me what I would need to do in order to create a Fortran DLL that can be called from VB.net?&lt;/P&gt;

&lt;P&gt;Note: I am a novice programmer.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;subroutine&lt;/STRONG&gt; TEST(cal,outp)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;!DEC$ ATTRIBUTES DLLEXPORT, ALIAS: 'TEST'::TEST&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;implicit&lt;/STRONG&gt; double precision (a-h,o-z)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;implicit&lt;/STRONG&gt; &lt;STRONG&gt;integer&lt;/STRONG&gt; (i-n)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;outp=dexp(cal)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;RETURN&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;END&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 21:30:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053990#M115918</guid>
      <dc:creator>Steve1</dc:creator>
      <dc:date>2014-11-11T21:30:42Z</dc:date>
    </item>
    <item>
      <title>Try this inside an IFort</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053991#M115919</link>
      <description>&lt;P&gt;Try this inside an IFort command window:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;Build the DLL, using the command&amp;nbsp;&lt;STRONG&gt;ifort /LD fdll.f90&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
	&lt;LI&gt;Build the VB program, using the command &lt;STRONG&gt;vbc vbpgm.bas /platform:x86&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;This also works for x64 if you leave out the platform option in the second command.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 22:14:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053991#M115919</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-11-11T22:14:00Z</dc:date>
    </item>
    <item>
      <title>He's using CVF. I think the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053992#M115920</link>
      <description>&lt;P&gt;He's using CVF. I think the command would be:&lt;/P&gt;

&lt;P&gt;df /dll fdll.f90&lt;/P&gt;

&lt;P&gt;If the Fortran DLL was not going to be called from Fortran, you could link statically and eliminate the need for dforrt,dll:&lt;/P&gt;

&lt;P&gt;df /libs:static /dll fdll.f90&lt;/P&gt;

&lt;P&gt;We weren't shown how the routine is declared in VB6, but I'll comment that VB will say "DLL not found" for ANY kind of error it gets loading the DLL&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 22:39:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053992#M115920</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-11-11T22:39:44Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve wrote:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053993#M115921</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I have Compaq Fortran running on a Windows XP machine where I can compile a DLL from Fortran code. I then call this DLL from VB 6 and VB.net without problems. I include dforrt.dll in the directory where the VB project exists.&lt;/P&gt;

&lt;P&gt;Below I created a very simple Intel Fortran DLL, which when I try to call from VB.net I get an error message that the DLL cannot be found.&lt;/P&gt;

&lt;P&gt;Could you please tell me what I would need to do in order to create a Fortran DLL that can be called from VB.net?&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;"DLL not found" errors are very often due to some DLL dependencies that are missing on the path. &amp;nbsp;In your case, you may have run-time dependencies (similar to dforrt.dll with Compaq Fortran) for which you may need to take extra steps. &amp;nbsp;Take a look at these topics:&amp;nbsp;https://software.intel.com/en-us/forums/topic/275632,&amp;nbsp;https://software.intel.com/en-us/forums/topic/533439, and&amp;nbsp;https://software.intel.com/en-us/forums/topic/506625.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 22:59:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053993#M115921</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2014-11-11T22:59:40Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve Lionel (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053994#M115922</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve Lionel (Intel) wrote:&lt;BR /&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;He's using CVF.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;He &lt;STRONG&gt;was &lt;/STRONG&gt;using CVF without problems, and is now trying the same with IFort, but has problems.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 00:36:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053994#M115922</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-11-12T00:36:00Z</dc:date>
    </item>
    <item>
      <title>dforrt.dll will also need</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053995#M115923</link>
      <description>&lt;P&gt;dforrt.dll will also need msvcrt.dll.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 00:37:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053995#M115923</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-11-12T00:37:05Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve wrote:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053996#M115924</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;..&lt;/P&gt;

&lt;P&gt;Below I created a very simple Intel Fortran DLL, which when I try to call from VB.net I get an error message that the DLL cannot be found.&lt;/P&gt;

&lt;P&gt;Could you please tell me what I would need to do in order to create a Fortran DLL that can be called from VB.net?&lt;/P&gt;

&lt;P&gt;..&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Steve (OP on this topic),&lt;/P&gt;

&lt;P&gt;Do you have Microsoft Visual Studio, something other than the Express edition or the shell? &amp;nbsp;If so, you can also take a look at a fully-worked out example of a VB .NET program calling a Fortran DLL in Quote #2 at this topic:&amp;nbsp;https://software.intel.com/en-us/forums/topic/509148. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:46:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053996#M115924</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2014-11-12T14:46:54Z</dc:date>
    </item>
    <item>
      <title>I thank you to Steve, mecej4,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053997#M115925</link>
      <description>&lt;P&gt;Thank you to Steve, mecej4, and FortranFan. As I said, I am a novice, but with your various comments/help I have resolved my problej. I have used Visual Studio 2005 and have used the library Debug Multithreaded (/libs:static /threads /dbglibs)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 22:10:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-DLL-called-from-VB-net/m-p/1053997#M115925</guid>
      <dc:creator>Steve1</dc:creator>
      <dc:date>2014-11-12T22:10:07Z</dc:date>
    </item>
  </channel>
</rss>

