<?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 Thank you for your response in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-WPF-Calling-DLL-Unhandled-exception-of-type-System/m-p/1053610#M115798</link>
    <description>&lt;P&gt;Thank you for your response Steve,&lt;/P&gt;

&lt;P&gt;I didn't include the source as I thought it was a load/scope issue. &amp;nbsp;However, as it turns out, it was an entry point issue; which I would not have found if you hadn't pointed me in the right direction - thx.&lt;/P&gt;

&lt;P&gt;I had Dependency Walker installed and had previously interrogated the DLL but missed the fact that my entry point module was absent! &amp;nbsp;I had originally installed Dependency Walker to look at the marshaling of names to ensure accuracy of my calls. &amp;nbsp;In any event, yes, the module was a Compaq Visual Fortran that was migrated; application was a VB app calling Compaq Visual Fortran DLL. In Compaq Visual Fortran DLL I did not need to identify the called module as a subroutine; complete INTERFACE and !DEC$ statements were sufficient.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;To Fix the issue I:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;1 - Added a subroutine statement to the Fortran code:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;SUBROUTINE MYENTRYPT/END SUBROUTINE&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2 - Retained the existing statement within the MYDLL module:&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !DEC$ ATTRIBUTES DLLEXPORT, ALIAS: '_MYENTRYPT'::MYENTRYPT&lt;/P&gt;

&lt;P&gt;3 - Rebuilt the application and was able to run :)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jan 2015 18:02:54 GMT</pubDate>
    <dc:creator>Jacqueline_N_</dc:creator>
    <dc:date>2015-01-16T18:02:54Z</dc:date>
    <item>
      <title>C# WPF Calling DLL - Unhandled exception of type 'System.EntryPointNotFoundException'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-WPF-Calling-DLL-Unhandled-exception-of-type-System/m-p/1053608#M115796</link>
      <description>&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;I have created a solution MYAPP.&amp;nbsp; Within the solution I have a C# WPF (MYAPP) and a Fortran DLL (MYDLL).&amp;nbsp; A wrapper class (MYWRAPPERCL) calls the Fortran DLL.&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;When I attempt to call the DLL I receive the following message:&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;An unhandled exception of type ‘System.EntryPointNotFoundException’ occurred in MYAPP.exe&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;Additional information: Unable to find an entry point name ‘MYENTRYPT’ in DLL ‘c:\Users\me\My Documents\Visual Studio 2013\Projects\MYAPP\MYDLL\Debug\MYDLL.dll’&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;Here is what I have checked so far; nothing changes the error message:&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;1 - I have altered the call to the DLL as:&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp;&amp;nbsp; [&lt;SPAN style="color: rgb(51, 162, 189); -webkit-text-stroke-color: rgb(51, 162, 189);"&gt;DllImport&lt;/SPAN&gt;(“c:\\Users\\me\\My Documents\\Visual Studio 2013\\Projects\\MYAPP\\MYDLL\ \Debug\\MYDLL.dll", &amp;nbsp; EntryPoint = "MYENTRYPT", SetLastError = &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CharSet = &lt;SPAN style="color: rgb(51, 162, 189); -webkit-text-stroke-color: rgb(51, 162, 189);"&gt;CharSet&lt;/SPAN&gt;.Unicode, ExactSpelling = &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CallingConvention = &lt;SPAN style="color: rgb(51, 162, 189); -webkit-text-stroke-color: rgb(51, 162, 189);"&gt;CallingConvention&lt;/SPAN&gt;.StdCall)]&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;extern&lt;/SPAN&gt; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;int&lt;/SPAN&gt; MYENTRYPT();&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;2 - I have altered the call to the DLL as:&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp;&amp;nbsp; [&lt;SPAN style="color: rgb(51, 162, 189); -webkit-text-stroke-color: rgb(51, 162, 189);"&gt;DllImport&lt;/SPAN&gt;("c:\\Users\\me\\Documents\\Visual Studio 2013\\Projects\\MYAPP\\MYDLL\\Debug\\MYDLL.dll", &amp;nbsp; EntryPoint = "MYENTRYPT", SetLastError = &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CharSet = &lt;SPAN style="color: rgb(51, 162, 189); -webkit-text-stroke-color: rgb(51, 162, 189);"&gt;CharSet&lt;/SPAN&gt;.Unicode, ExactSpelling = &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CallingConvention = &lt;SPAN style="color: rgb(51, 162, 189); -webkit-text-stroke-color: rgb(51, 162, 189);"&gt;CallingConvention&lt;/SPAN&gt;.StdCall)]&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;extern&lt;/SPAN&gt; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;int&lt;/SPAN&gt; MYENTRYPT();&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;3 - I have altered the call to the DLL as:&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp;&amp;nbsp; [&lt;SPAN style="color: rgb(51, 162, 189); -webkit-text-stroke-color: rgb(51, 162, 189);"&gt;DllImport&lt;/SPAN&gt;("MYDLL.dll", &amp;nbsp; EntryPoint = "MYENTRYPT", SetLastError = &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CharSet = &lt;SPAN style="color: rgb(51, 162, 189); -webkit-text-stroke-color: rgb(51, 162, 189);"&gt;CharSet&lt;/SPAN&gt;.Unicode, ExactSpelling = &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CallingConvention = &lt;SPAN style="color: rgb(51, 162, 189); -webkit-text-stroke-color: rgb(51, 162, 189);"&gt;CallingConvention&lt;/SPAN&gt;.StdCall)]&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;extern&lt;/SPAN&gt; &lt;SPAN style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);"&gt;int&lt;/SPAN&gt; MYENTRYPT();&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;4 - In Solution Explorer/Properties the Project Folder for the MYDLL is set to:&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; c:\Users\me\Documents\Visual Studio 2013\Projects\MYAPP\MYDLL\&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;5 - I verified that the DLL is located in:&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; c:\Users\me\My Documents\Visual Studio 2013\Projects\MYAPP\MYDLL\Debug&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;6 - Linker command line for MYDLL:&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;/OUT:"Debug\PMC.dll" /VERBOSE /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"Debug\MYDLL.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\me\Documents\Visual Studio 2013\Projects\MYAPP\MYDLL\Debug\MYDLL.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"C:\Users\me\Documents\Visual Studio 2013\Projects\MYAPP\MYDLL\Debug\MYDLL.lib" /DLL&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;History&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;- Other projects (other than dll) compiled and run from the Projects subdirectory compile and execute without exception.&lt;/P&gt;

&lt;P style="font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;"&gt;- At one point in time I renamed the DLL folder to MYDLL; was able to compile and link successfully after the change. &amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-size: 11px; line-height: normal; font-family: Helvetica; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 17:11:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-WPF-Calling-DLL-Unhandled-exception-of-type-System/m-p/1053608#M115796</guid>
      <dc:creator>Jacqueline_N_</dc:creator>
      <dc:date>2015-01-16T17:11:19Z</dc:date>
    </item>
    <item>
      <title>You haven't shown what the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-WPF-Calling-DLL-Unhandled-exception-of-type-System/m-p/1053609#M115797</link>
      <description>&lt;P&gt;You haven't shown what the Fortran source for MYENTRYPT looks like (including any directives). It is unlikely that changing the calling convention to Stdcall is appropriate, unless perhaps the Fortran project is something migrated from Compaq Visual Fortran. If you run DependencyWalker on your DLL, what does it show for the names of the exported entry points?&lt;/P&gt;

&lt;P&gt;The other thing to look at is whether all the dependent DLLs are present. C#, VB and the like will give you "entry point not found" when the real problem is that some dependent DLL is not present. You would typically not see this on a system where Intel Fortran is installed, but if you copied the DLL elsewhere without installing the redistributable installers you might.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 17:26:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-WPF-Calling-DLL-Unhandled-exception-of-type-System/m-p/1053609#M115797</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-01-16T17:26:38Z</dc:date>
    </item>
    <item>
      <title>Thank you for your response</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-WPF-Calling-DLL-Unhandled-exception-of-type-System/m-p/1053610#M115798</link>
      <description>&lt;P&gt;Thank you for your response Steve,&lt;/P&gt;

&lt;P&gt;I didn't include the source as I thought it was a load/scope issue. &amp;nbsp;However, as it turns out, it was an entry point issue; which I would not have found if you hadn't pointed me in the right direction - thx.&lt;/P&gt;

&lt;P&gt;I had Dependency Walker installed and had previously interrogated the DLL but missed the fact that my entry point module was absent! &amp;nbsp;I had originally installed Dependency Walker to look at the marshaling of names to ensure accuracy of my calls. &amp;nbsp;In any event, yes, the module was a Compaq Visual Fortran that was migrated; application was a VB app calling Compaq Visual Fortran DLL. In Compaq Visual Fortran DLL I did not need to identify the called module as a subroutine; complete INTERFACE and !DEC$ statements were sufficient.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;To Fix the issue I:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;1 - Added a subroutine statement to the Fortran code:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;SUBROUTINE MYENTRYPT/END SUBROUTINE&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2 - Retained the existing statement within the MYDLL module:&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !DEC$ ATTRIBUTES DLLEXPORT, ALIAS: '_MYENTRYPT'::MYENTRYPT&lt;/P&gt;

&lt;P&gt;3 - Rebuilt the application and was able to run :)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 18:02:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-WPF-Calling-DLL-Unhandled-exception-of-type-System/m-p/1053610#M115798</guid>
      <dc:creator>Jacqueline_N_</dc:creator>
      <dc:date>2015-01-16T18:02:54Z</dc:date>
    </item>
    <item>
      <title>Ok - Please make sure that</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/C-WPF-Calling-DLL-Unhandled-exception-of-type-System/m-p/1053611#M115799</link>
      <description>&lt;P&gt;Ok - Please make sure that under Fortran &amp;gt; External procedures, Calling Convention is set to Default and not CVF. I don't understand your comment about having to add SUBROUTINE - there's no difference from CVF there. But I'm glad you got it working.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 19:20:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/C-WPF-Calling-DLL-Unhandled-exception-of-type-System/m-p/1053611#M115799</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-01-16T19:20:59Z</dc:date>
    </item>
  </channel>
</rss>

