<?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: Dialog in DLL Subroutine in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Dialog-in-DLL-Subroutine/m-p/970126#M23704</link>
    <description>You can get hInstance using DFWIN function GetModuleFileName("mydll.dll"C). Note that this would fail if a) someone renames your dll or b) possibly if there are multiple instances of different dlls with the same name loaded. However, for practical reasons I think this would suffice. &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
    <pubDate>Sat, 20 Oct 2001 00:55:39 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2001-10-20T00:55:39Z</dc:date>
    <item>
      <title>Dialog in DLL Subroutine</title>
      <link>https://community.intel.com/t5/Software-Archive/Dialog-in-DLL-Subroutine/m-p/970125#M23703</link>
      <description>Hopefully this is a simple question but probably not. &lt;BR /&gt; &lt;BR /&gt;I have a visual basic program calling a fortran dll to do some simulation. The fortran program takes some time to compute so I have added a progress bar in a resource file. The dll compiles fine but I can't get the dialog to initialize or show. Looking in the documentation it says I need to use the  &lt;BR /&gt;DLGINITWITHRESOURCE command instead of the DLGINIT since the dialog is in the dll. Visual basic calls right into the dll subroutine and passes about 30 characters, integers and real numbers. They pass okay back and forth. DLGINITWITH RESOURCE needs a module instance handler which it says is given to DLLMAIN when the dll is called, except my visual basic program entries into the subroutine directly (TSSFOR) since it is passing numerous data. All of the initialization commands return zero so they are not successful and the program crashes on the DLGMODELESS  command saying that the program is trying to reference memory which cannot be read.  &lt;BR /&gt; &lt;BR /&gt;How do I get the module instance handler and am I on the right track that I need it?</description>
      <pubDate>Fri, 19 Oct 2001 04:23:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dialog-in-DLL-Subroutine/m-p/970125#M23703</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-10-19T04:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog in DLL Subroutine</title>
      <link>https://community.intel.com/t5/Software-Archive/Dialog-in-DLL-Subroutine/m-p/970126#M23704</link>
      <description>You can get hInstance using DFWIN function GetModuleFileName("mydll.dll"C). Note that this would fail if a) someone renames your dll or b) possibly if there are multiple instances of different dlls with the same name loaded. However, for practical reasons I think this would suffice. &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Sat, 20 Oct 2001 00:55:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dialog-in-DLL-Subroutine/m-p/970126#M23704</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-10-20T00:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog in DLL Subroutine</title>
      <link>https://community.intel.com/t5/Software-Archive/Dialog-in-DLL-Subroutine/m-p/970127#M23705</link>
      <description>Apologies for the typo, that should be GetModuleHandle -- GetModuleFileName does the reverse thing.</description>
      <pubDate>Sat, 20 Oct 2001 17:23:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dialog-in-DLL-Subroutine/m-p/970127#M23705</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-10-20T17:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog in DLL Subroutine</title>
      <link>https://community.intel.com/t5/Software-Archive/Dialog-in-DLL-Subroutine/m-p/970128#M23706</link>
      <description>Graham, &lt;BR /&gt; &lt;BR /&gt;An additional suggestion.  You should check out the CVF dllprgrs sample in ..Microsoft Visual StudioDF98SAMPLESDIALOGDLLPRGRS.  The description of this sample reads &lt;I&gt;The dllprgrs sample demonstrates using the Visual Fortran Dialog Procedures in a DLL. &lt;/I&gt;  (with a progress bar no less) &lt;BR /&gt; &lt;BR /&gt;hth, &lt;BR /&gt;JT</description>
      <pubDate>Wed, 24 Oct 2001 11:44:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dialog-in-DLL-Subroutine/m-p/970128#M23706</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-10-24T11:44:03Z</dc:date>
    </item>
  </channel>
</rss>

