<?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 IVF DLL from Visual Basic in VS2010 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783758#M29022</link>
    <description>You need to use the Debug configuration for the Fortran Dll and you need to start debugging from the Fortran project (you have to configure the main program to run when debugging in the fortran project properties window : "Debugging" section and on the right side just fill the "Command" field, you can also define here the "Working directory").</description>
    <pubDate>Thu, 18 Nov 2010 07:30:29 GMT</pubDate>
    <dc:creator>netphilou31</dc:creator>
    <dc:date>2010-11-18T07:30:29Z</dc:date>
    <item>
      <title>Calling IVF DLL from Visual Basic in VS2010</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783755#M29019</link>
      <description>Hi Everyone,&lt;BR /&gt;I just started using VS2010 with IVF, I am trying to build a very simple DLL as below and call it from VB (in VS2010). It builds OK, I don't get any error, the problem is that nothing happend when I pass the call to IVF DLL, I expect a to change from 2 to 5, but it stays 2. the other question is how can I debug IVF DLL part. I was used work with VB6, CVF and there I just introduced VB .exe file as an external file for CVF in order to debug DLL part.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;************* IVF Part ************&lt;BR /&gt;
subroutine Dll1(a)&lt;BR /&gt;
implicit none&lt;BR /&gt;
!DEC$ ATTRIBUTES DLLEXPORT, STDCALL :: Dll1&lt;BR /&gt;
!DEC$ ATTRIBUTES ALIAS:'Dll1' :: Dll1&lt;BR /&gt;
Doubleprecision :: a&lt;BR /&gt;
a=5.0;&lt;BR /&gt;
return&lt;BR /&gt;
end !subroutine Dll1&lt;BR /&gt;&lt;BR /&gt;************* VB Part **************&lt;BR /&gt;Public Class Form1&lt;BR /&gt; 'Declare Sub Dll1 Lib "C:\\VSPractices\\WindowsApplication1\\Dll1\\Debug\\Dll1.dll" (ByVal a As Single)&lt;BR /&gt; Inherits System.Windows.Forms.Form&lt;BR /&gt; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;BR /&gt; Dim a As Double&lt;BR /&gt; a = 2&lt;BR /&gt; Call Dll1(a)&lt;BR /&gt; End Sub&lt;BR /&gt;End Class&lt;BR /&gt;&lt;BR /&gt;Module Module1&lt;BR /&gt; Public Declare Auto Sub Dll1 Lib "C:\\VSPractices\\WindowsApplication1\\Dll1\\Debug\\Dll1.dll" _&lt;BR /&gt; (ByVal a As Double)&lt;BR /&gt;End Module&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Nov 2010 20:30:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783755#M29019</guid>
      <dc:creator>polarbear00</dc:creator>
      <dc:date>2010-11-17T20:30:29Z</dc:date>
    </item>
    <item>
      <title>Calling IVF DLL from Visual Basic in VS2010</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783756#M29020</link>
      <description>It simply due to the fact that the argument is passed by value instead of reference (Byref). In the fortran code you need to change the line:&lt;DIV&gt;&lt;PRE&gt;[fortran]!DEC$ ATTRIBUTES DLLEXPORT, STDCALL :: Dll1[/fortran]&lt;/PRE&gt; by&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[fortran]!DEC$ ATTRIBUTES DLLEXPORT, STDCALL, REFERENCE :: Dll1[/fortran]&lt;/PRE&gt; and the VB declaration:&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[vb]Public Declare Auto Sub Dll1 Lib "C:VSPracticesWindowsApplication1Dll1DebugDll1.dll" _
    (ByVal a As Double)[/vb]&lt;/PRE&gt;by&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[vb]Public Declare Auto Sub Dll1 Lib "C:VSPracticesWindowsApplication1Dll1DebugDll1.dll" _
    (ByRef a As Double)[/vb]&lt;/PRE&gt; &lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Nov 2010 21:46:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783756#M29020</guid>
      <dc:creator>netphilou31</dc:creator>
      <dc:date>2010-11-17T21:46:19Z</dc:date>
    </item>
    <item>
      <title>Calling IVF DLL from Visual Basic in VS2010</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783757#M29021</link>
      <description>Thanks, the problem was resolved. I am also trying to debug from IVF DLL, when I put a breakpoint there it does not go in and a yellow exclamation mark appears that says "the breakpoint will not currently be hit. no symbols have been loaded for this document". do you have any clue how to get into the IVF DLL part in debug mode?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Nov 2010 22:16:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783757#M29021</guid>
      <dc:creator>polarbear00</dc:creator>
      <dc:date>2010-11-17T22:16:52Z</dc:date>
    </item>
    <item>
      <title>Calling IVF DLL from Visual Basic in VS2010</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783758#M29022</link>
      <description>You need to use the Debug configuration for the Fortran Dll and you need to start debugging from the Fortran project (you have to configure the main program to run when debugging in the fortran project properties window : "Debugging" section and on the right side just fill the "Command" field, you can also define here the "Working directory").</description>
      <pubDate>Thu, 18 Nov 2010 07:30:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783758#M29022</guid>
      <dc:creator>netphilou31</dc:creator>
      <dc:date>2010-11-18T07:30:29Z</dc:date>
    </item>
    <item>
      <title>Calling IVF DLL from Visual Basic in VS2010</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783759#M29023</link>
      <description>Thanks for the help, It worked.</description>
      <pubDate>Thu, 18 Nov 2010 14:05:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783759#M29023</guid>
      <dc:creator>polarbear00</dc:creator>
      <dc:date>2010-11-18T14:05:28Z</dc:date>
    </item>
    <item>
      <title>Calling IVF DLL from Visual Basic in VS2010</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783760#M29024</link>
      <description>Does IVF have auto-complete feature? is there any add-ons that does that?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 19 Nov 2010 21:36:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783760#M29024</guid>
      <dc:creator>polarbear00</dc:creator>
      <dc:date>2010-11-19T21:36:15Z</dc:date>
    </item>
    <item>
      <title>Calling IVF DLL from Visual Basic in VS2010</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783761#M29025</link>
      <description>No it does not.</description>
      <pubDate>Fri, 19 Nov 2010 22:03:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Calling-IVF-DLL-from-Visual-Basic-in-VS2010/m-p/783761#M29025</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-19T22:03:47Z</dc:date>
    </item>
  </channel>
</rss>

