<?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>Software Archive의 주제 Re: Calling a subroutine whose name is in a variable</title>
    <link>https://community.intel.com/t5/Software-Archive/Calling-a-subroutine-whose-name-is-in-a-variable/m-p/986288#M27194</link>
    <description>Not in a portable way but certainly doable, the manner dictated by the target platform.  The best method depends on &lt;I&gt;why&lt;/I&gt; you want to do this.  Generally making some sort of dispatch function which accepts "MYFUNCTION" as an argument can be used while keeping things relatively generic though. &lt;BR /&gt; &lt;BR /&gt;James</description>
    <pubDate>Fri, 15 Mar 2002 06:26:18 GMT</pubDate>
    <dc:creator>james1</dc:creator>
    <dc:date>2002-03-15T06:26:18Z</dc:date>
    <item>
      <title>Calling a subroutine whose name is in a variable</title>
      <link>https://community.intel.com/t5/Software-Archive/Calling-a-subroutine-whose-name-is-in-a-variable/m-p/986287#M27193</link>
      <description>Is it possible to call a subroutine whose name is in a variable?   &lt;BR /&gt;Let's say for example I have a character array with the string 'MYFUNCTION' in it, I would like to issue an instruction that does the same as ' CALL MYFUNCTION ( blabla ) '  &lt;BR /&gt;  &lt;BR /&gt;Thanks, Michael</description>
      <pubDate>Fri, 15 Mar 2002 05:42:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Calling-a-subroutine-whose-name-is-in-a-variable/m-p/986287#M27193</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2002-03-15T05:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subroutine whose name is in a variable</title>
      <link>https://community.intel.com/t5/Software-Archive/Calling-a-subroutine-whose-name-is-in-a-variable/m-p/986288#M27194</link>
      <description>Not in a portable way but certainly doable, the manner dictated by the target platform.  The best method depends on &lt;I&gt;why&lt;/I&gt; you want to do this.  Generally making some sort of dispatch function which accepts "MYFUNCTION" as an argument can be used while keeping things relatively generic though. &lt;BR /&gt; &lt;BR /&gt;James</description>
      <pubDate>Fri, 15 Mar 2002 06:26:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Calling-a-subroutine-whose-name-is-in-a-variable/m-p/986288#M27194</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2002-03-15T06:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subroutine whose name is in a variable</title>
      <link>https://community.intel.com/t5/Software-Archive/Calling-a-subroutine-whose-name-is-in-a-variable/m-p/986289#M27195</link>
      <description>Thanks for your answer. I will try to explain what we want to do:  &lt;BR /&gt;The idea is to have a library of components that simulate the behaviour of thermal systems. These components are in DLL libraries and each component coresponds to a FORTRAN routine (e.g. one routine simulates a boiler, another routine simulates a heat exchanger).   &lt;BR /&gt;The user creates a simulation scheme (you can see it as a text file with the names of the routines, their parameters and the way they are connected to each other) One instruction in the file could be that we have to call the "BOILER" routine with some parameters.  &lt;BR /&gt;Ideally, every user could add libraries with new modules and so we need a way to be able to look into all DLL's in a given folder if a given routine exists, and then call it.  &lt;BR /&gt;  &lt;BR /&gt;Thanks,Michael</description>
      <pubDate>Fri, 15 Mar 2002 08:11:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Calling-a-subroutine-whose-name-is-in-a-variable/m-p/986289#M27195</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2002-03-15T08:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subroutine whose name is in a variable</title>
      <link>https://community.intel.com/t5/Software-Archive/Calling-a-subroutine-whose-name-is-in-a-variable/m-p/986290#M27196</link>
      <description>You'd have to use dynamic binding of dll routines (LoadLibrary/GetProcAddress), which requires that dll's lib file is &lt;B&gt;not&lt;/B&gt; linked with the calling module, and routines are referenced by dll name and routine name. See &lt;BR /&gt;&lt;A href="http://www7.compaq.com/forum?14@@.ef04201%20%20!SearchMark=1#1"&gt;this recent thread&lt;/A&gt;.</description>
      <pubDate>Fri, 15 Mar 2002 21:57:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Calling-a-subroutine-whose-name-is-in-a-variable/m-p/986290#M27196</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2002-03-15T21:57:40Z</dc:date>
    </item>
  </channel>
</rss>

