<?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: Function to return full path of executable in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Function-to-return-full-path-of-executable/m-p/970848#M23876</link>
    <description>It's &lt;PRE&gt;GetModuleFileName(NULL, sDirectory, LEN(sDirectory))&lt;/PRE&gt; where sDirectory is character(MAX_PATH). Have in mind that it returns zero-terminated string, so you should probably strip terminal char(0) after that: &lt;BR /&gt;&lt;PRE&gt;sDirectory=sDirectory(1: INDEX(sDirectory, char(0))-1)&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
    <pubDate>Mon, 22 Oct 2001 03:22:59 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2001-10-22T03:22:59Z</dc:date>
    <item>
      <title>Function to return full path of executable</title>
      <link>https://community.intel.com/t5/Software-Archive/Function-to-return-full-path-of-executable/m-p/970847#M23875</link>
      <description>Is there a CVF function that returns the full path of the executable that calls it?  I seem to remember seeing it but I cannot find it now. &lt;BR /&gt; &lt;BR /&gt;I want my program to know where to find help and configuration files (when installed in other people's machines) without having to go through a complicated installation process.  This program will be running on various W* machines (95, 98, Me, NT4, 2000, etc.). &lt;BR /&gt; &lt;BR /&gt;Thanks, &lt;BR /&gt; &lt;BR /&gt;Gabriel</description>
      <pubDate>Mon, 22 Oct 2001 00:19:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Function-to-return-full-path-of-executable/m-p/970847#M23875</guid>
      <dc:creator>grtoro</dc:creator>
      <dc:date>2001-10-22T00:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function to return full path of executable</title>
      <link>https://community.intel.com/t5/Software-Archive/Function-to-return-full-path-of-executable/m-p/970848#M23876</link>
      <description>It's &lt;PRE&gt;GetModuleFileName(NULL, sDirectory, LEN(sDirectory))&lt;/PRE&gt; where sDirectory is character(MAX_PATH). Have in mind that it returns zero-terminated string, so you should probably strip terminal char(0) after that: &lt;BR /&gt;&lt;PRE&gt;sDirectory=sDirectory(1: INDEX(sDirectory, char(0))-1)&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Mon, 22 Oct 2001 03:22:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Function-to-return-full-path-of-executable/m-p/970848#M23876</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-10-22T03:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Function to return full path of executable</title>
      <link>https://community.intel.com/t5/Software-Archive/Function-to-return-full-path-of-executable/m-p/970849#M23877</link>
      <description>...heh, twilight zone -- I'm becoming a prophet :-). I &lt;I&gt;mistakenly&lt;/I&gt; gave that same answer to the thread "&lt;A href="http://www7.compaq.com/forum?14@@.eefea2c!SearchMark=1#1"&gt;Dialog Box in a DLL&lt;/A&gt;" two days ago.</description>
      <pubDate>Mon, 22 Oct 2001 03:39:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Function-to-return-full-path-of-executable/m-p/970849#M23877</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-10-22T03:39:04Z</dc:date>
    </item>
  </channel>
</rss>

