<?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 Re: Problem with Visual Basic Calling Fortran DLL in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Problem-with-Visual-Basic-Calling-Fortran-DLL/m-p/966142#M22917</link>
    <description>on,  &lt;BR /&gt;  Regarding to your problem that only the first element of array is passed from BB to FORT RAN DELL, I ran into a similar situation before. I found the solution by accident. Anyway, in your BB code, when you declare your multidimensional arrays, declare each of them separately. For example,  &lt;BR /&gt;    Dim arr1(1 to 10, 1 to 10)  &lt;BR /&gt;    Dim arr2(1 to 10, 1 to 10)  &lt;BR /&gt;and not  &lt;BR /&gt;    Dim arr1(1 to 10), arr2(1 to 10)  &lt;BR /&gt;  Hopefully this is helpful.  &lt;BR /&gt;  &lt;BR /&gt;Yeong</description>
    <pubDate>Tue, 16 Oct 2001 04:56:38 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-10-16T04:56:38Z</dc:date>
    <item>
      <title>Problem with Visual Basic Calling Fortran DLL</title>
      <link>https://community.intel.com/t5/Software-Archive/Problem-with-Visual-Basic-Calling-Fortran-DLL/m-p/966141#M22916</link>
      <description>Ever thought you figured out a problem and then realized you still have not got a clue to how to fix it ? &lt;BR /&gt; &lt;BR /&gt;I have read all the help and documentation but still cannot get VB to properly call a Fortran DLL. I am using Excel as a front end interface to some Fortran routines. I can pass double precision numbers and integers but cannot pass arrays. When I try to pass the array by specifying the first position of an array, d, only the first element is changed (i.e. CALL myroutine(d(1))). &lt;BR /&gt; &lt;BR /&gt;Does anyone have any pieces of code or point to examples  that shows how to properly call a FORTRAN DLL and pass mixtures of integers, arrays, multidimentional arrays of double precision numbers, etc. ? &lt;BR /&gt; &lt;BR /&gt;My only other alternative is to write the data to a file to be accessed by VB and Fortran but that is so cave-man like I prefer not to. &lt;BR /&gt; &lt;BR /&gt;Thanks in advance. &lt;BR /&gt; &lt;BR /&gt;Jon</description>
      <pubDate>Sun, 02 Sep 2001 03:09:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problem-with-Visual-Basic-Calling-Fortran-DLL/m-p/966141#M22916</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-09-02T03:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Visual Basic Calling Fortran DLL</title>
      <link>https://community.intel.com/t5/Software-Archive/Problem-with-Visual-Basic-Calling-Fortran-DLL/m-p/966142#M22917</link>
      <description>on,  &lt;BR /&gt;  Regarding to your problem that only the first element of array is passed from BB to FORT RAN DELL, I ran into a similar situation before. I found the solution by accident. Anyway, in your BB code, when you declare your multidimensional arrays, declare each of them separately. For example,  &lt;BR /&gt;    Dim arr1(1 to 10, 1 to 10)  &lt;BR /&gt;    Dim arr2(1 to 10, 1 to 10)  &lt;BR /&gt;and not  &lt;BR /&gt;    Dim arr1(1 to 10), arr2(1 to 10)  &lt;BR /&gt;  Hopefully this is helpful.  &lt;BR /&gt;  &lt;BR /&gt;Yeong</description>
      <pubDate>Tue, 16 Oct 2001 04:56:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problem-with-Visual-Basic-Calling-Fortran-DLL/m-p/966142#M22917</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-10-16T04:56:38Z</dc:date>
    </item>
  </channel>
</rss>

