<?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: Simple RegSetValue question in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845331#M63300</link>
    <description>Thank you James, &lt;BR /&gt;I don't know how I missed that, but a related question:&lt;BR /&gt;&lt;BR /&gt;As you can see the arg "lpValueName" ('HEDGEHOG'C) is supposed to be a "Pointer to a string"&lt;BR /&gt;and the arg. "lpData" (=path) is supposed to be a "Pointer to a buffer". Now I don't know what a "buffer" is but is _looks like that it is a string as well.&lt;BR /&gt;&lt;BR /&gt;Yet, I cannot seem to put in an explicit specification like 'c:h'C. (fials on compile: mismatch arg type)&lt;BR /&gt;&lt;BR /&gt;Any idea why?&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;TimH</description>
    <pubDate>Wed, 01 May 2002 22:13:54 GMT</pubDate>
    <dc:creator>rahzan</dc:creator>
    <dc:date>2002-05-01T22:13:54Z</dc:date>
    <item>
      <title>Simple RegSetValue question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845329#M63298</link>
      <description>In the code below the regsetvalueex call results in an access viol error. Any guesses on the problem will be appreciated?&lt;BR /&gt;&lt;BR /&gt;use dfwin   &lt;BR /&gt;implicit none  &lt;BR /&gt;integer hKey , hNewOrOld, pathLen&lt;BR /&gt;integer(LONG) retval&lt;BR /&gt;character(100) path&lt;BR /&gt;retVal=RegCreateKeyEx(HKEY_CURRENT_USER, &amp;amp;&lt;BR /&gt;'Environment'C, 0,'REG_SZ'C,		 &amp;amp;&lt;BR /&gt;REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, &amp;amp;&lt;BR /&gt; NULL, loc(hKey),		         &amp;amp;&lt;BR /&gt;loc(hNewOrOld))&lt;BR /&gt;&lt;BR /&gt;path='c:\hh'&lt;BR /&gt;pathLen=len_trim(path)+1&lt;BR /&gt;path(pathLen:pathLen)=char(0)&lt;BR /&gt;retVal=RegSetValueEx(hKey, 'HedgeHog'C, 0, &amp;amp;&lt;BR /&gt; REG_SZ, loc(path), loc(pathLen))&lt;BR /&gt;&lt;BR /&gt;retVal=RegCloseKey(hKey)</description>
      <pubDate>Wed, 01 May 2002 01:49:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845329#M63298</guid>
      <dc:creator>rahzan</dc:creator>
      <dc:date>2002-05-01T01:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Simple RegSetValue question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845330#M63299</link>
      <description>Eliminate the LOC on the last actual argument in the RegSetValueEx, it isn't expecting an address.&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Wed, 01 May 2002 07:11:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845330#M63299</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2002-05-01T07:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Simple RegSetValue question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845331#M63300</link>
      <description>Thank you James, &lt;BR /&gt;I don't know how I missed that, but a related question:&lt;BR /&gt;&lt;BR /&gt;As you can see the arg "lpValueName" ('HEDGEHOG'C) is supposed to be a "Pointer to a string"&lt;BR /&gt;and the arg. "lpData" (=path) is supposed to be a "Pointer to a buffer". Now I don't know what a "buffer" is but is _looks like that it is a string as well.&lt;BR /&gt;&lt;BR /&gt;Yet, I cannot seem to put in an explicit specification like 'c:h'C. (fials on compile: mismatch arg type)&lt;BR /&gt;&lt;BR /&gt;Any idea why?&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;TimH</description>
      <pubDate>Wed, 01 May 2002 22:13:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845331#M63300</guid>
      <dc:creator>rahzan</dc:creator>
      <dc:date>2002-05-01T22:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Simple RegSetValue question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845332#M63301</link>
      <description>Should work if you put it inside a LOC.&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Wed, 01 May 2002 23:49:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845332#M63301</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2002-05-01T23:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Simple RegSetValue question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845333#M63302</link>
      <description>Because the "buffer" for RegSetValueEx can be of any type, what you must pass from Fortran is the address of the buffer, or loc(buffer).  The value name ("HEDGEHOG"C) is just a string that can be passed directly.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 02 May 2002 02:51:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simple-RegSetValue-question/m-p/845333#M63302</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2002-05-02T02:51:30Z</dc:date>
    </item>
  </channel>
</rss>

