<?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 I would recommend using a in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Return-array-of-strings-from-Fortran-to-C/m-p/922799#M85871</link>
    <description>&lt;P&gt;I would recommend using a SafeArray to set up your string array, then using Marshalas(UnmanagedType.SafeArray) on the C# side.&lt;/P&gt;
&lt;P&gt;There is a Fortran SafeArray example that comes with the Intel compiler that you an utilise for guidance.&lt;/P&gt;</description>
    <pubDate>Sun, 07 Apr 2013 15:35:51 GMT</pubDate>
    <dc:creator>Anthony_Richards</dc:creator>
    <dc:date>2013-04-07T15:35:51Z</dc:date>
    <item>
      <title>Return array of strings from Fortran to C#</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Return-array-of-strings-from-Fortran-to-C/m-p/922798#M85870</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need a simple way to return an array of strings with unknown size to C#.&amp;nbsp;Here there is a sample code of fortran subroutine:&lt;/P&gt;
&lt;P&gt;[fortran]&lt;/P&gt;
&lt;P&gt;subroutine testStringArray(strArr)&lt;BR /&gt;! directive&lt;BR /&gt;!DEC$ ATTRIBUTES DLLEXPORT, Alias:'testStringArray' :: testStringArray&lt;BR /&gt;! argument&lt;BR /&gt;character(len=32),allocatable,intent(out) :: strArr(:)&lt;BR /&gt;! local variable&lt;BR /&gt;integer :: size&lt;BR /&gt;! main&lt;BR /&gt;print*, 'Please enter the size of array:'&lt;BR /&gt;read(*,*) size&lt;BR /&gt;allocate(strArr(size))&lt;BR /&gt;strArr='Hello world'C&lt;BR /&gt;end subroutine testStringArray&lt;/P&gt;
&lt;P&gt;[/fortran]&lt;/P&gt;
&lt;P&gt;Can anyone give me a C# code to use this subroutine?&lt;/P&gt;
&lt;P&gt;There is no matter in changing the directives, interface, arguments and body of subroutine. my main goal is returing strings to C#.&lt;/P&gt;
&lt;P&gt;Best regards, Arash.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2013 09:51:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Return-array-of-strings-from-Fortran-to-C/m-p/922798#M85870</guid>
      <dc:creator>Arash_Rasekh</dc:creator>
      <dc:date>2013-04-07T09:51:24Z</dc:date>
    </item>
    <item>
      <title>I would recommend using a</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Return-array-of-strings-from-Fortran-to-C/m-p/922799#M85871</link>
      <description>&lt;P&gt;I would recommend using a SafeArray to set up your string array, then using Marshalas(UnmanagedType.SafeArray) on the C# side.&lt;/P&gt;
&lt;P&gt;There is a Fortran SafeArray example that comes with the Intel compiler that you an utilise for guidance.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2013 15:35:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Return-array-of-strings-from-Fortran-to-C/m-p/922799#M85871</guid>
      <dc:creator>Anthony_Richards</dc:creator>
      <dc:date>2013-04-07T15:35:51Z</dc:date>
    </item>
  </channel>
</rss>

