<?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: Calling function in x64-Fortran-DLL function from VB.NET in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-function-in-x64-Fortran-DLL-function-from-VB-NET/m-p/887328#M77090</link>
    <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
Hi,&lt;BR /&gt;&lt;BR /&gt;it might be/might not be related but what about this &lt;A href="http://software.intel.com/en-us/articles/visual-basic-passing-array-to-fortran-dll-in-x64/"&gt;KB&lt;/A&gt; article?&lt;BR /&gt;&lt;BR /&gt;A.</description>
    <pubDate>Fri, 05 Jun 2009 07:38:47 GMT</pubDate>
    <dc:creator>ArturGuzik</dc:creator>
    <dc:date>2009-06-05T07:38:47Z</dc:date>
    <item>
      <title>Calling function in x64-Fortran-DLL function from VB.NET</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-function-in-x64-Fortran-DLL-function-from-VB-NET/m-p/887327#M77089</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;i have a problem regarding this function in a fortran-dll:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;function RowColGet( pMat, iRegion, iMax, faOrig, faDest, iCountOrig, iCountDest ) result(iRet)&lt;BR /&gt;!DEC$ ATTRIBUTES ALIAS: 'V3MatRowColGet' :: RowColGet&lt;BR /&gt;!Specified in V3Mat.Def&lt;BR /&gt;!!DEC$ ATTRIBUTES DLLEXPORT, ALIAS: 'V3MatRowColGet' :: RowColGet &lt;BR /&gt;!DEC$ ATTRIBUTES VALUE	::	iRegion, iMax&lt;BR /&gt;&lt;BR /&gt; use ifcom&lt;BR /&gt; implicit none&lt;BR /&gt;&lt;BR /&gt; type (T_MATRIX), pointer	::	pMat&lt;BR /&gt; integer(4), intent(in)	::	iRegion, iMax&lt;BR /&gt; real(4), intent(out)			::	faOrig(0:iMax), faDest(0:iMax)&lt;BR /&gt; integer(4), intent(out)	::	iCountOrig, iCountDest&lt;BR /&gt;&lt;BR /&gt; integer(4)	::	iRet&lt;BR /&gt;&lt;BR /&gt; ...&lt;BR /&gt;end function&lt;/PRE&gt;
The function definition on VB.Net side is like this:&lt;BR /&gt;
&lt;PRE&gt;Friend Declare Function V3MatRowColGet Lib "V3Mat.DLL" ( _&lt;BR /&gt;  ByRef hMatrix As IntPtr, ByVal iRegion As Integer, ByVal iMax As Integer, _&lt;BR /&gt;  ByRef asngOrigFirstItem As Single, ByRef asngDestFirstItem As Single, _&lt;BR /&gt;  ByRef iOrigCount As Integer, ByRef iDestCount As Integer) As Integer&lt;/PRE&gt;
The VB.Net part is compiled in Multi-Platform Mode.&lt;BR /&gt;&lt;BR /&gt;If I run the code on an x86 environment everything works fine, if I run it on an x64 environment this function fails with an access violation.&lt;BR /&gt;&lt;BR /&gt;I wonder if I have to change passing of the real(4) arrays on vb.net side?&lt;BR /&gt;&lt;BR /&gt;Any clues?&lt;BR /&gt;&lt;BR /&gt;Btw, where has the forum search gone?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;FObermaier&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jun 2009 06:59:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-function-in-x64-Fortran-DLL-function-from-VB-NET/m-p/887327#M77089</guid>
      <dc:creator>fobermaier</dc:creator>
      <dc:date>2009-06-05T06:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in x64-Fortran-DLL function from VB.NET</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-function-in-x64-Fortran-DLL-function-from-VB-NET/m-p/887328#M77090</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
Hi,&lt;BR /&gt;&lt;BR /&gt;it might be/might not be related but what about this &lt;A href="http://software.intel.com/en-us/articles/visual-basic-passing-array-to-fortran-dll-in-x64/"&gt;KB&lt;/A&gt; article?&lt;BR /&gt;&lt;BR /&gt;A.</description>
      <pubDate>Fri, 05 Jun 2009 07:38:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-function-in-x64-Fortran-DLL-function-from-VB-NET/m-p/887328#M77090</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-06-05T07:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in x64-Fortran-DLL function from VB.NET</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-function-in-x64-Fortran-DLL-function-from-VB-NET/m-p/887329#M77091</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;BR /&gt;I don't know VB at all but it sounds like it could be a mismatch between 4-byte and 8-byte things (pointers, handles etc)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/378287"&gt;fobermaier&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;Btw, where has the forum search gone?&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
It's still there, on the first page, just above Steve's link to attaching files.&lt;BR /&gt;&lt;BR /&gt;Les</description>
      <pubDate>Fri, 05 Jun 2009 08:49:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-function-in-x64-Fortran-DLL-function-from-VB-NET/m-p/887329#M77091</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2009-06-05T08:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in x64-Fortran-DLL function from VB.NET</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-function-in-x64-Fortran-DLL-function-from-VB-NET/m-p/887330#M77092</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/126388"&gt;Les Neilson&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; It's still there, on the first page, just above Steve's link to attaching files.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Thank you, found it.&lt;BR /&gt;FObermaier&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jun 2009 09:36:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-function-in-x64-Fortran-DLL-function-from-VB-NET/m-p/887330#M77092</guid>
      <dc:creator>fobermaier</dc:creator>
      <dc:date>2009-06-05T09:36:19Z</dc:date>
    </item>
  </channel>
</rss>

