<?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: API Call fails to return anything (however works on another in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776760#M25476</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;What is the value of pathln passed into GetModuleFileName?&lt;/P&gt;&lt;P&gt;Les&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2006 22:44:07 GMT</pubDate>
    <dc:creator>Les_Neilson</dc:creator>
    <dc:date>2006-04-18T22:44:07Z</dc:date>
    <item>
      <title>API Call fails to return anything (however works on another computer)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776758#M25474</link>
      <description>I have a dll that contains the following code:&lt;BR /&gt;use dfwin&lt;BR /&gt;&lt;BR /&gt;Character(256) path,path1&lt;BR /&gt;integer(4) pathln&lt;BR /&gt;pathln = GetModuleFileName (NULL, path1, pathln)&lt;BR /&gt;&lt;BR /&gt;I am using Intel Fortran 9.0&lt;BR /&gt;&lt;BR /&gt;On one computer, the call is fine. We find the path &amp;amp; pathlength. On 2 other development machines we get nothing. I am told that originally the path was indeed returned.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas of what I should/could look for that would cause the API to return nothing. Note: it does not give any sort of errors and such, it simply returns and empty string &amp;amp; a 0 for the length.&lt;BR /&gt;&lt;BR /&gt;Having asked the all important question "What changedd?" did not help. Also of note, I replaced the non functioning code with the funtioning (project files and all, literally everything that is contained in the parent folder) and still the API doesn't return an answer.&lt;BR /&gt;&lt;BR /&gt;HELP!</description>
      <pubDate>Tue, 18 Apr 2006 22:21:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776758#M25474</guid>
      <dc:creator>laddikey</dc:creator>
      <dc:date>2006-04-18T22:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: API Call fails to return anything (however works on another</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776759#M25475</link>
      <description>What does a subsequent GetLastError call return?</description>
      <pubDate>Tue, 18 Apr 2006 22:37:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776759#M25475</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-04-18T22:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: API Call fails to return anything (however works on another</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776760#M25476</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;What is the value of pathln passed into GetModuleFileName?&lt;/P&gt;&lt;P&gt;Les&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2006 22:44:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776760#M25476</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2006-04-18T22:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: API Call fails to return anything (however works on another</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776761#M25477</link>
      <description>... that argument should be simply LEN(path1)</description>
      <pubDate>Tue, 18 Apr 2006 23:25:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776761#M25477</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2006-04-18T23:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: API Call fails to return anything (however works on another</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776762#M25478</link>
      <description>GetLastError returns a 6.&lt;BR /&gt;&lt;BR /&gt;Although I have decared pathln, I have not set it's value at the time the call is made.</description>
      <pubDate>Tue, 18 Apr 2006 23:54:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776762#M25478</guid>
      <dc:creator>laddikey</dc:creator>
      <dc:date>2006-04-18T23:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: API Call fails to return anything (however works on another</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776763#M25479</link>
      <description>ahh, theres the rub JugoslavDujic, I actually am more interested in the path itself (hence the API call). I am indeed using the value of the length but it is the path that I am in search of.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 18 Apr 2006 23:55:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776763#M25479</guid>
      <dc:creator>laddikey</dc:creator>
      <dc:date>2006-04-18T23:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: API Call fails to return anything (however works on another</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776764#M25480</link>
      <description>Jugoslav is correct - the third argument is an input that is the size of the path buffer argument. It is not an output parameter. Since you're passing an uninitialized variable, the API routine may or may not decide that the buffer overflows.&lt;BR /&gt;&lt;BR /&gt;If you want the length of the returned path you look at the function result.&lt;P&gt;Message Edited by Steve_Lionel on &lt;SPAN class="date_text"&gt;04-18-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:58 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2006 23:57:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776764#M25480</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-04-18T23:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: API Call fails to return anything (however works on another</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776765#M25481</link>
      <description>Beautiful -- thanks Jugoslav &amp;amp; Steve, I misunderstood what you meant but you are correct, as soon as I changed that 3rd argument, it works.&lt;BR /&gt;&lt;BR /&gt;I appreciate the help.&lt;BR /&gt;:)</description>
      <pubDate>Wed, 19 Apr 2006 00:11:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/API-Call-fails-to-return-anything-however-works-on-another/m-p/776765#M25481</guid>
      <dc:creator>laddikey</dc:creator>
      <dc:date>2006-04-19T00:11:35Z</dc:date>
    </item>
  </channel>
</rss>

