<?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: Mixed-Language Programming with C++ in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Mixed-Language-Programming-with-C/m-p/932241#M15115</link>
    <description>INCLUDE will work equally well as USE, but again it &lt;BR /&gt;has to be used in every subroutine which calls a C function, &lt;BR /&gt;not on beginning of source files.  &lt;BR /&gt; &lt;BR /&gt;Unfortunately, this is &lt;BR /&gt;an example how a non-portable extension may strike back &lt;BR /&gt;hardly. Fortran had never had "file scope" of names, so &lt;BR /&gt;the MS's extension was a bit stretching... and abandoned. &lt;BR /&gt; &lt;BR /&gt;Perhaps a "Replace in files" utility (you can download &lt;BR /&gt;"File Search Replace Utility" from &lt;A href="https://community.intel.com/" .gamadyne.com=""&gt;www.gamadyne.com&lt;/A&gt;) might help you  to  &lt;BR /&gt;automate the task on 2.500 source files... or a well-written macro &lt;BR /&gt;in Visual Studio. &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
    <pubDate>Sun, 17 Dec 2000 23:09:02 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2000-12-17T23:09:02Z</dc:date>
    <item>
      <title>Mixed-Language Programming with C++</title>
      <link>https://community.intel.com/t5/Software-Archive/Mixed-Language-Programming-with-C/m-p/932239#M15113</link>
      <description>In earlier versions of Microsoft Fortran I could use the INTERFACE TO statement for global scope. My project contains more than 2.500 fortran files! So I added in each file the first line with an INCLUDE of the mixed language declaration file. This include file contains sections like &lt;BR /&gt; &lt;BR /&gt;      INTERFACE TO INTEGER FUNCTION HATGEN [STDCALL](A,B,C,D,E) &lt;BR /&gt;      INTEGER A,D,E &lt;BR /&gt;      INTEGER B [REFERENCE] &lt;BR /&gt;      DOUBLEPRECISION C [REFERENCE] &lt;BR /&gt;      END &lt;BR /&gt; &lt;BR /&gt;The documentation of Visual Fortran 6.5 says, the new syntax is &lt;BR /&gt; &lt;BR /&gt;      INTERFACE &lt;BR /&gt;         INTEGER FUNCTION HATGEN(A,B,C,D,E) &lt;BR /&gt;          !DEC$ ATTRIBUTES STDCALL :: HATGEN &lt;BR /&gt;          !DEC$ ATTRIBUTES REFERENCE :: B,C &lt;BR /&gt;          INTEGER A,B,D,E &lt;BR /&gt;          DOUBLEPRECISION C &lt;BR /&gt;         END FUNCTION &lt;BR /&gt;      END INTERFACE &lt;BR /&gt; &lt;BR /&gt;But this only work, if the interface is embedded inside of a subroutine or function definition. Is the necessary interface declaration for mixed language routines only possible for local scope? &lt;BR /&gt;I need it for global scope, because otherwise I have explicitly to insert some thousand interface sections! &lt;BR /&gt;Who can help me?? &lt;BR /&gt;Sorry for my german english. &lt;BR /&gt; &lt;BR /&gt;Burkhard</description>
      <pubDate>Sat, 16 Dec 2000 02:32:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Mixed-Language-Programming-with-C/m-p/932239#M15113</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2000-12-16T02:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed-Language Programming with C++</title>
      <link>https://community.intel.com/t5/Software-Archive/Mixed-Language-Programming-with-C/m-p/932240#M15114</link>
      <description>Sorry - Visual Fortran does not support "global scope" for INTERFACE TO.  You can put the INTERFACE TO lines in a MODULE and just add a USE of the module name to your routines.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 16 Dec 2000 07:36:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Mixed-Language-Programming-with-C/m-p/932240#M15114</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2000-12-16T07:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed-Language Programming with C++</title>
      <link>https://community.intel.com/t5/Software-Archive/Mixed-Language-Programming-with-C/m-p/932241#M15115</link>
      <description>INCLUDE will work equally well as USE, but again it &lt;BR /&gt;has to be used in every subroutine which calls a C function, &lt;BR /&gt;not on beginning of source files.  &lt;BR /&gt; &lt;BR /&gt;Unfortunately, this is &lt;BR /&gt;an example how a non-portable extension may strike back &lt;BR /&gt;hardly. Fortran had never had "file scope" of names, so &lt;BR /&gt;the MS's extension was a bit stretching... and abandoned. &lt;BR /&gt; &lt;BR /&gt;Perhaps a "Replace in files" utility (you can download &lt;BR /&gt;"File Search Replace Utility" from &lt;A href="https://community.intel.com/" .gamadyne.com=""&gt;www.gamadyne.com&lt;/A&gt;) might help you  to  &lt;BR /&gt;automate the task on 2.500 source files... or a well-written macro &lt;BR /&gt;in Visual Studio. &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Sun, 17 Dec 2000 23:09:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Mixed-Language-Programming-with-C/m-p/932241#M15115</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2000-12-17T23:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed-Language Programming with C++</title>
      <link>https://community.intel.com/t5/Software-Archive/Mixed-Language-Programming-with-C/m-p/932242#M15116</link>
      <description>There used to be a utility program, STRSUB.EXE, that was distributed with F. If you have it, it will be found at &lt;PROGRAM filesmicro="" soft="" visual="" studiodf98supportmissstrsub.exe=""&gt;. This utility replaces all occurrences of a string with another string within a file. You might be able to write a batch file or a macro using this utility to help you modify your files without having to do it manually.  &lt;BR /&gt;  &lt;BR /&gt;Mike Durisin&lt;/PROGRAM&gt;</description>
      <pubDate>Tue, 19 Dec 2000 00:55:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Mixed-Language-Programming-with-C/m-p/932242#M15116</guid>
      <dc:creator>durisinm</dc:creator>
      <dc:date>2000-12-19T00:55:25Z</dc:date>
    </item>
  </channel>
</rss>

