<?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 Passing string from Visual CPP to Visual Fortran in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-string-from-Visual-CPP-to-Visual-Fortran/m-p/815164#M44866</link>
    <description>Unfortunately, you have several options, with more or less system dependence involved. The compiler docs should be your friend. If you don't want to deal with additional hidden length arguments, you can USE iso_c_binding and follow any of the documents about character string/arrays with ISO C interop, even those not specific to Intel Fortran. In this case, the terminating \0 from the C side will appear as a character element ACHAR(0) on the Fortran side.</description>
    <pubDate>Thu, 24 May 2012 20:15:45 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2012-05-24T20:15:45Z</dc:date>
    <item>
      <title>Passing string from Visual CPP to Visual Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-string-from-Visual-CPP-to-Visual-Fortran/m-p/815163#M44865</link>
      <description>Hi,&lt;BR /&gt;Can some one tell me how to pass a char array from visual c++ code to a fortran subroutine.&lt;BR /&gt;&lt;BR /&gt;I tried below code, it doesn't work for me..&lt;BR /&gt;&lt;BR /&gt;My CPP code:&lt;BR /&gt;&lt;BR /&gt;extern "C" {void Routine1(char* param1, char* param2);}&lt;BR /&gt;&lt;BR /&gt;Method:&lt;BR /&gt;char param1[]="c:/text1.txt";&lt;BR /&gt;char param2[]="c:/text2.txt" ;&lt;BR /&gt;Routine1(param1,param2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Fortran Code:&lt;BR /&gt;SUBROUTINE Routine1(param1, param2)&lt;BR /&gt;!DEC$ ATTRIBUTES DLLEXPORT::Routine1&lt;BR /&gt;&lt;BR /&gt;CHARACTER(100) :: Routine1,Routine2&lt;BR /&gt;&lt;BR /&gt;!Some logic&lt;BR /&gt;&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 May 2012 18:44:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-string-from-Visual-CPP-to-Visual-Fortran/m-p/815163#M44865</guid>
      <dc:creator>mch7918</dc:creator>
      <dc:date>2012-05-24T18:44:18Z</dc:date>
    </item>
    <item>
      <title>Passing string from Visual CPP to Visual Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-string-from-Visual-CPP-to-Visual-Fortran/m-p/815164#M44866</link>
      <description>Unfortunately, you have several options, with more or less system dependence involved. The compiler docs should be your friend. If you don't want to deal with additional hidden length arguments, you can USE iso_c_binding and follow any of the documents about character string/arrays with ISO C interop, even those not specific to Intel Fortran. In this case, the terminating \0 from the C side will appear as a character element ACHAR(0) on the Fortran side.</description>
      <pubDate>Thu, 24 May 2012 20:15:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-string-from-Visual-CPP-to-Visual-Fortran/m-p/815164#M44866</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-05-24T20:15:45Z</dc:date>
    </item>
  </channel>
</rss>

