<?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: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807867#M41129</link>
    <description>&lt;P&gt;Thanks Steve,&lt;/P&gt;
&lt;P&gt;I added the STDCALL to both applications.I stillhave to comment out the Alias line when calling from the Fortran exe. When I do the code steps right in. But if uncomment the line I get the following error.&lt;/P&gt;
&lt;P&gt;Unhandled exception at 0x400025ff in exeside.exe: 0xC0000005: Access violation reading location 0x400025ff.&lt;/P&gt;
&lt;P&gt;I am not sure what an INTERFACE BLOCK is but I will look it up. &lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jan 2007 06:17:04 GMT</pubDate>
    <dc:creator>aggiedad</dc:creator>
    <dc:date>2007-01-27T06:17:04Z</dc:date>
    <item>
      <title>Newbie Question - Calling a Fortrn DLL from a Fortran EXE in .NET</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807858#M41120</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am using VS2003 and would like to create a simple fortran .exe that will call a subroutine in a Fortran DLL.&lt;/P&gt;
&lt;P&gt;I have looked at the examples but didn't find one that matched my needs. I have tried a number of things&lt;/P&gt;&lt;FONT color="#008000" size="2"&gt;
&lt;P&gt;&lt;STRONG&gt;!dec$ attributes dllexport, stdcall, reference, alias : "subtest1" :: subtest1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;dll.load("c:\data\fortran\subtest", symbol ="subtest1"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" color="#000000" size="3"&gt;but cannot seem to find the correct combination and syntax.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;Is there a quick and dirty VS solution example that someone could pass on to me?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;Eric&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" color="#000000" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 10 Oct 2006 04:21:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807858#M41120</guid>
      <dc:creator>aggiedad</dc:creator>
      <dc:date>2006-10-10T04:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807859#M41121</link>
      <description>To call a Fortran DLL routine from Fortran, you don't need anything special in the source. Just link to the export library created when the DLL is built. You do need to use !DEC$ ATTRIBUTES DLLEXPORT :: routinename in the DLL routine itself. You don't need STDCALL or ALIAS or REFERENCE unless you're doing something out of the ordinary.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Oct 2006 07:56:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807859#M41121</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-10-10T07:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807860#M41122</link>
      <description>&lt;P&gt;Thanks for your help Steve. I got it to work using the following steps. However, I am sure there is a better way.&lt;/P&gt;
&lt;P&gt;Created a new Fortran - Windows Application project&lt;/P&gt;
&lt;P&gt;File &amp;gt; New &amp;gt; Project &amp;gt; Intel Fortran Projects &amp;gt; Windows Application, changing the name to F2F and the location to C:Test&lt;/P&gt;
&lt;P&gt;When the wizard box is displayed I click on Application Settings and make sure Dialog-based sample code is selected. Then click Finish&lt;/P&gt;
&lt;P&gt;This creates the project (and solution) and inserts a basic form and command button example. Click on the Start arrow to build and run the project. It displays a form with two buttons. Then click Exit.&lt;/P&gt;
&lt;P&gt;I then created another projectFile &amp;gt; New &amp;gt; Project &amp;gt; Intel Fortran Projects &amp;gt; Dynamic-link Library, using the same location as the Windows Application and F2Fdll as the name.&lt;/P&gt;
&lt;P&gt;When the wizard box is displayed I click on Dll Settingsand make sure Dll_sample code with export routineis selected. Then click Finish&lt;/P&gt;
&lt;P&gt;The wizard adds the &lt;FONT color="#008000" size="2"&gt;&lt;STRONG&gt;!DEC$ ATTRIBUTES DLLEXPORT::F2Fdll&lt;/STRONG&gt;&lt;FONT color="#000000" size="3"&gt; line for me. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" size="2"&gt;&lt;FONT color="#000000" size="3"&gt;Then I select the project (F2Fdll) in Solution Explorer then click on Project &amp;gt; Properties &amp;gt; Linker &amp;gt; General &amp;gt; Output Fileand enter the path and filenamewhere I want the output DLL file to be placed each time it is compiled (C:TestF2FDebugF2Fdll.dll). I did this because of an error I got after clicking Start telling me it could not find itthe F2Fdll.dll file. I probably could have changes something elsethat would work better but this got me on the right path.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I select the project (F2F) in Solution Explorer then click on Project &amp;gt; Properties &amp;gt; Linker &amp;gt; Input &amp;gt; Additional Dependancies I entered thepath and filenamewhere the library file is located (C:TestF2FDllDebugF2FDll.lib) &lt;/P&gt;
&lt;P&gt;Finally, I selected the Solution F2F in Solution Explorer then click on Project &amp;gt; Properties &amp;gt; Project Dependencies and checked theF2F box.&lt;/P&gt;
&lt;P&gt;Ithen replaced the F2Fdll subroutine with a simple set of code&lt;/P&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;subroutine&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; F2Fdll(&lt;FONT size="2"&gt;y,z&lt;/FONT&gt;)&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;! Expose subroutine F2Fdll to users of this DLL&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;!&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#008000" size="2"&gt;!DEC$ ATTRIBUTES DLLEXPORT::F2Fdll&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;! Variables&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;! Body of F2Fdll&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;INTEGER&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; y, z &lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;REAL&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; x(y)&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;IF&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;( y .gt. 1)&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;THEN&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;x(1) = 23&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;DO&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; 10 i=2,y&lt;P&gt;&lt;/P&gt;
&lt;P&gt;x(i) = z*x(i-1)+x(i)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#ff0000" size="2"&gt;10&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;CONTINUE&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;ENDIF&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;RETURN&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;B&gt;
&lt;P&gt;end subroutine&lt;/P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; F2Fdll&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;And replaced the &lt;FONT size="2"&gt;F2FApply subroutine in the F2F executablewith &lt;/FONT&gt;&lt;/P&gt;&lt;FONT color="#008000" size="2"&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;SUBROUTINE&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt; F2FApply( dlg, id, callbacktype )&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#008000" size="2"&gt;
&lt;P&gt;!DEC$ ATTRIBUTES DEFAULT :: F2FApply&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;! use iflogm&lt;P&gt;&lt;/P&gt;
&lt;P&gt;!&lt;/P&gt;
&lt;P&gt;! implicit none&lt;/P&gt;
&lt;P&gt;!&lt;/P&gt;
&lt;P&gt;! type (dialog) dlg&lt;/P&gt;
&lt;P&gt;! integer id, callbacktype&lt;/P&gt;
&lt;P&gt;!&lt;/P&gt;
&lt;P&gt;! if (callbacktype == dlg_clicked) then&lt;/P&gt;
&lt;P&gt;! ! TO DO; Add your APPLY logic here&lt;/P&gt;
&lt;P&gt;! endif&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;call&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; F2FDll(5, 6)&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="2"&gt;END SUBROUTINE&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; F2FApply&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;I set a breakpoint on the call line and started the application.&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Clicked on the Apply button and used the F11 (step) key to enter the dll and loop through the code. I also placed the variable x in the Watch window to see it working.&lt;/P&gt;
&lt;P&gt;Now I need to work on extending it further. Additional comments are welcome and appreciated.&lt;/P&gt;
&lt;P&gt;Thanks again Steve.&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2006 21:40:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807860#M41122</guid>
      <dc:creator>aggiedad</dc:creator>
      <dc:date>2006-10-10T21:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807861#M41123</link>
      <description>&lt;P&gt;Hi all, I am finally back looking at my code again. The problem we solved above was using a QuickWin solution. I am now attempting to call a Fortran DLL from a Fortran (console) application. I am still currentlyusing Visual Studio 2003 to write, compile and test this project. I have two projects (EXESide and DLLSide) in the same solution.&lt;/P&gt;
&lt;P&gt;I am having trouble getting the console application to recognize or "see" the Fortran DLL. I am getting an error&lt;/P&gt;
&lt;P&gt;Error: Error in opening the Library module file. [DLLSIDE]&lt;/P&gt;
&lt;P&gt;I have tried a number of things working with the EXE's and DLL's properties (Fortran, Linker, etc.) I placed then lib filename in the Linker Dependencies, placed the DLL in the EXE debug folder, and much more, but have not got the EXE to recognize the DLL.&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Console Application&lt;/P&gt;
&lt;P&gt; program EXESide&lt;/P&gt;
&lt;P&gt; use DLLSide&lt;BR /&gt; implicit none&lt;/P&gt;
&lt;P&gt; end program EXESide&lt;/P&gt;
&lt;P&gt;A module in the DLL project&lt;/P&gt;
&lt;P&gt; module DLLSide&lt;/P&gt;
&lt;P&gt; !DEC$ ATTRIBUTES DLLEXPORT::DLLSide&lt;BR /&gt; use IFNLS,only: NLSFormatDate,NLSFormatTime,NLS$LongDate&lt;BR /&gt;&lt;BR /&gt; end module DLLSide&lt;/P&gt;
&lt;P&gt;I'm thinking I need to add the location of the DLL or Lib file in a property for the EXE or possibly in the path section of the operating system but have exhausted all my options.&lt;/P&gt;
&lt;P&gt;Can someone please help?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Eric &lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2007 04:33:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807861#M41123</guid>
      <dc:creator>aggiedad</dc:creator>
      <dc:date>2007-01-23T04:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807862#M41124</link>
      <description>That error has nothing to do with DLLs. It's simply saying that the compiler can't find dllside.mod, the module file created by compiling module DLLSIDE. By default, it looks in the same directory as the source file containing the USE statement, and also in directories listed in the INCLUDE path.</description>
      <pubDate>Tue, 23 Jan 2007 04:37:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807862#M41124</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-01-23T04:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807863#M41125</link>
      <description>By the way, Steve, I just now realized that the error message text: &lt;BR /&gt;&lt;PRE&gt;Error opening &lt;B&gt;Library&lt;/B&gt; module file &lt;/PRE&gt;is fairly misleading (although it's been around for years): .mod files have little or nothing to do with "libraries" in the most common sense of the word (static library or dynamic link library). &lt;BR /&gt;I suggest rephrasing it, or at least removing the word "library".&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jan 2007 21:57:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807863#M41125</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2007-01-23T21:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807864#M41126</link>
      <description>Yes, I have felt the same about that message. I'll see what can be done.</description>
      <pubDate>Tue, 23 Jan 2007 22:39:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807864#M41126</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-01-23T22:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807865#M41127</link>
      <description>&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Thanks Steve,&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;I added the path (.mod files location) to the properties section of the exe application in the Fortran  General  Additional Include Directories and I got past that problem.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;--------------------------------------&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;I have an additional issue now.&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;I would like to use the same Fortran DLL for both my C# and Fortran console applications.&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;In one of my dll modules I have the following three declarations.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;B&gt;subroutine&lt;/B&gt; set_flags(data_flag,diagnostics_flag)&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: lime; FONT-FAMILY: Arial"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="COLOR: green"&gt;!DEC$ ATTRIBUTES DLLEXPORT::set_flags&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: green"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="COLOR: green"&gt;!DEC$ ATTRIBUTES ALIAS:'_set_flags'::set_flags&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: green"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="COLOR: green"&gt;!DEC$ ATTRIBUTES VALUE::data_flag,diagnostics_flag&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: green"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;! Code here&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;B&gt;end subroutine&lt;/B&gt; set_flags&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;This works when the C# code calls the DLL.&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;But I get an error when the Fortran calls it.&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;If I comment out the middle DEC statement (Alias) then the Fortran calls it successfully but the C# code fails.&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Any thoughts on how I can get around this?&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Thanks,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Eric&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2007 00:04:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807865#M41127</guid>
      <dc:creator>aggiedad</dc:creator>
      <dc:date>2007-01-27T00:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807866#M41128</link>
      <description>&lt;P&gt;You will need the ALIAS to be visible to the Fortran caller. I think, though, that you also need:&lt;/P&gt;
&lt;P&gt;!DEC$ ATTRIBUTES STDCALL, REFERENCE :: set_flags&lt;/P&gt;
&lt;P&gt;or else you'll get stack corruption when called from C#. I'm not 100% certain of that. The Fortran caller needs to see this too. An INTERFACE block is the easiest way to specify this.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2007 03:12:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807866#M41128</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-01-27T03:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807867#M41129</link>
      <description>&lt;P&gt;Thanks Steve,&lt;/P&gt;
&lt;P&gt;I added the STDCALL to both applications.I stillhave to comment out the Alias line when calling from the Fortran exe. When I do the code steps right in. But if uncomment the line I get the following error.&lt;/P&gt;
&lt;P&gt;Unhandled exception at 0x400025ff in exeside.exe: 0xC0000005: Access violation reading location 0x400025ff.&lt;/P&gt;
&lt;P&gt;I am not sure what an INTERFACE BLOCK is but I will look it up. &lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2007 06:17:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807867#M41129</guid>
      <dc:creator>aggiedad</dc:creator>
      <dc:date>2007-01-27T06:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807868#M41130</link>
      <description>I don't quite understand your last post, Eric. Uncomment which line? From where does the acces sviolation occur? As I mentioned, the Fortran caller needs to see that the routine is given a different name.</description>
      <pubDate>Sat, 27 Jan 2007 09:57:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807868#M41130</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-01-27T09:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807869#M41131</link>
      <description>&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Sorry for the confusion.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Currently I have the two projects. One is the C# calling the Fortran DLL and the other is a Fortran console app that will eventually call the same Fortran DLL but is currently using its own version (copy) of the DLL code.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;I added the STDCALL you suggested above to both versions of the DLL.&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;I did not get any error, but it didnt solve my problem.&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;I have the following lines in the DLL version of the Fortran console application&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="COLOR: green"&gt;!DEC$ ATTRIBUTES DLLEXPORT::set_flags&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: green"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="COLOR: green"&gt;!DEC$ ATTRIBUTES ALIAS:'_set_flags'::set_flags&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: green"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="COLOR: green"&gt;!DEC$ ATTRIBUTES STDCALL, REFERENCE :: set_flags&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: green"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="COLOR: green"&gt;!DEC$ ATTRIBUTES VALUE:: data_flag,diagnostics_flag&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-bidi-font-weight: bold"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-bidi-font-weight: bold"&gt;When I get to the &lt;B&gt;&lt;SPAN style="COLOR: #339966"&gt;call set_flags &lt;/SPAN&gt;&lt;/B&gt;line of code in the console (exeside.exe) application an error occurs.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT
-SIZE: 10pt; COLOR: #555555; FONT-FAMILY: Verdana"&gt;Unhandled exception at 0x400025ff in exeside.exe: 0xC0000005: Access violation reading location 0x400025ff.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;If I comment out the&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt; &lt;SPAN style="COLOR: green"&gt;!!DEC$ ATTRIBUTES ALIAS:'_set_flags'::set_flags &lt;/SPAN&gt;line then the console application steps into the DLL and runs the code.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;On the C# exe side, calling the Fortran DLL, I have the same 4 DEC statements and it works.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;However, when I comment out the same line of code &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Courier New'"&gt;!!DEC$ ATTRIBUTES ALIAS:'_set_flags'::set_flags &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;in the C# version of the Fortran DLL I get the error&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: 'Courier New'"&gt;Unable to find an entry point named set_flags in DLL DLLSide.dll.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;In other words I need the Alias DEC statement when calling from the C# code and I dont need it (or cant have it) on the Fortran console application calling the DLL.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;Any ideas on how to get both exes to work with the same set of DEC statements?&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;Is there a better or different way? &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;Thanks a bunch for your help,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;Eric&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2007 23:04:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807869#M41131</guid>
      <dc:creator>aggiedad</dc:creator>
      <dc:date>2007-01-29T23:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807870#M41132</link>
      <description>&lt;P&gt;At this point I'd ask that you submit an issue to Intel Premier Support, attach a ZIP of the projects along with instructions for reprodiucing the problem, and let us look at it. Please request that the issue be assigned to Steve Lionel.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2007 00:20:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807870#M41132</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-01-30T00:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - Calling a Fortrn DLL from a Fortran EXE i</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807871#M41133</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;Thanks for the help. I just wanted to add the resolution to this issue so others might benefit.&lt;/P&gt;
&lt;P&gt;My problem was that my currentFortran version was 9.0 and needed to upgrade to 9.1.&lt;/P&gt;
&lt;P&gt;If you attempt this once VS is loaded then search this site for the steps that Steve has written to help in the process.&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2007 15:08:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-Question-Calling-a-Fortrn-DLL-from-a-Fortran-EXE-in-NET/m-p/807871#M41133</guid>
      <dc:creator>aggiedad</dc:creator>
      <dc:date>2007-02-09T15:08:02Z</dc:date>
    </item>
  </channel>
</rss>

