<?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 Hi Gerrit, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082558#M80190</link>
    <description>&lt;P&gt;Hi Gerrit,&lt;/P&gt;

&lt;P&gt;this ain't a debugger question but a general VB to Fortran interfacing question.&lt;/P&gt;

&lt;P&gt;Please use "ByVal ab As Single" and not "ByRef ab As Single".&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Georg Zitzlsberger&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 17:06:15 GMT</pubDate>
    <dc:creator>Georg_Z_Intel</dc:creator>
    <dc:date>2016-04-19T17:06:15Z</dc:date>
    <item>
      <title>Fortran DLL not returning data</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082554#M80186</link>
      <description>&lt;P&gt;Problem:&lt;BR /&gt;
	I am porting a program with VB6 UI + Compac DLL to VB.NET 2013 + Intel Fortran (11.1) DLL&lt;BR /&gt;
	A small dummy program, in VS 2 projects (UI and DLL), works fine, i.e.:&lt;BR /&gt;
	- data input in UI&lt;BR /&gt;
	- data changed in DLL&lt;BR /&gt;
	- changed data displayed in UI&lt;/P&gt;

&lt;P&gt;I'm using the following configuration:&lt;BR /&gt;
	- VS 2013&lt;BR /&gt;
	- Intel Frotran 11.1 for windows&lt;BR /&gt;
	- IMSL 7-1&lt;/P&gt;

&lt;P&gt;When I replace the UI by the UI of the target program, but keep the interface to the DLL&lt;BR /&gt;
	and the DLL the same as in the dummy program:&lt;BR /&gt;
	- I can debug the DLL: so the interface is ok,&lt;BR /&gt;
	- but data changed in the DLL is not returned to the UI&lt;BR /&gt;
	- property pages are kept the same&lt;/P&gt;

&lt;P&gt;Any suggestion what the cause might be, is highly appreaciated.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 08:00:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082554#M80186</guid>
      <dc:creator>Gerrit_V_1</dc:creator>
      <dc:date>2016-04-11T08:00:02Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082555#M80187</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;is the question related to the debugger as you cannot display the data returned from a DLL in the watch window?&lt;BR /&gt;
	Or is this a general question to why passing data via DLLs does not work in your setup?&lt;/P&gt;

&lt;P&gt;In any case it would help me and others if you could provide a stripped down example demonstrating the problem.&lt;/P&gt;

&lt;P&gt;Thank you &amp;amp; best regards,&lt;/P&gt;

&lt;P&gt;Georg Zitzlsberger&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 13:02:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082555#M80187</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2016-04-11T13:02:26Z</dc:date>
    </item>
    <item>
      <title>Hi Georg,</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082556#M80188</link>
      <description>&lt;P&gt;Hi Georg,&lt;/P&gt;

&lt;P&gt;Thanks for responding. I will prepare a small demo. What I noticed in the meantime is that data are returned from the dll if the parameters are packed in an array, so basically there is a solution.&amp;nbsp;But I don't understand why a single or integer parameter is not returning a value when changed in the dll.&lt;/P&gt;

&lt;P&gt;Best Regard,&lt;/P&gt;

&lt;P&gt;Gerrit Verboom&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 21:10:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082556#M80188</guid>
      <dc:creator>Gerrit_V_1</dc:creator>
      <dc:date>2016-04-11T21:10:56Z</dc:date>
    </item>
    <item>
      <title>Hi Georg,</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082557#M80189</link>
      <description>&lt;P&gt;Hi Georg,&lt;/P&gt;

&lt;P&gt;Please find attached a small VS solution of a VB UI and an Intel DLL.&lt;/P&gt;

&lt;P&gt;The value of&amp;nbsp;AB (single) is changed in the DLL, but not returned to the UI.&lt;/P&gt;

&lt;P&gt;When changed to a one-element array, the value is return to the UI.&lt;/P&gt;

&lt;P&gt;Looking forward to your remarks.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Gerrit&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 11:04:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082557#M80189</guid>
      <dc:creator>Gerrit_V_1</dc:creator>
      <dc:date>2016-04-12T11:04:34Z</dc:date>
    </item>
    <item>
      <title>Hi Gerrit,</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082558#M80190</link>
      <description>&lt;P&gt;Hi Gerrit,&lt;/P&gt;

&lt;P&gt;this ain't a debugger question but a general VB to Fortran interfacing question.&lt;/P&gt;

&lt;P&gt;Please use "ByVal ab As Single" and not "ByRef ab As Single".&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Georg Zitzlsberger&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 17:06:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082558#M80190</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2016-04-19T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Hi Georg,</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082559#M80191</link>
      <description>&lt;P&gt;Hi Georg,&lt;/P&gt;

&lt;P&gt;Thank you, this indeed solved my problem. I must update my understanding of ByVal versus ByRef.&lt;/P&gt;

&lt;P&gt;Best&amp;nbsp;regards,&lt;/P&gt;

&lt;P&gt;Gerrit Verboom&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 07:34:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-DLL-not-returning-data/m-p/1082559#M80191</guid>
      <dc:creator>Gerrit_V_1</dc:creator>
      <dc:date>2016-04-20T07:34:26Z</dc:date>
    </item>
  </channel>
</rss>

