<?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: GS::GenerateHashValue and update from API 24 to API 25 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/GS-GenerateHashValue-and-update-from-API-24-to-API-25/m-p/327475#M1948</link>
    <description>&lt;P&gt;Akos -&lt;/P&gt;&lt;P&gt;Thanks for shining some light on this one!&lt;/P&gt;&lt;P&gt;The undocumented hints are beyond helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- chris&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 16:08:48 GMT</pubDate>
    <dc:creator>MudratDetector</dc:creator>
    <dc:date>2022-01-18T16:08:48Z</dc:date>
    <item>
      <title>GS::GenerateHashValue and update from API 24 to API 25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GS-GenerateHashValue-and-update-from-API-24-to-API-25/m-p/327374#M1946</link>
      <description>&lt;P&gt;I think I understand the concepts of my solution, just not the exact C++ details.&amp;nbsp; Or maybe my thoughts are completely off base...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A former colleague created an information window in 24 that docks into our Archicad interface.&amp;nbsp; This window displays results from one of our custom APIs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code for 25 that should provide a "&lt;FONT face="courier new,courier"&gt;unique GUID to construct the palette to make it dockable&lt;/FONT&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1642458136866.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/18352i5C42C1F7AB849237/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1642458136866.png" alt="MudratDetector_0-1642458136866.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I build the 24 code for 25, I get an error.&amp;nbsp; I am using&amp;nbsp;VS2019.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;error C2672: 'GS::GenerateHashValue': no matching overloaded function found&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This snippet is the same exact code from our 24 version of the tool that works.&amp;nbsp; Except for 2 things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; The 25 version of the code has +3 overloads for&amp;nbsp;GS::GenerateHashValue.&amp;nbsp; The 24 version of the same code has +19 overloads for&amp;nbsp;GS::GenerateHashValue, one of which must work when GS::Guid is passed to it.&amp;nbsp; And is not available in 25.&amp;nbsp; The error log from the build mentions each of the 3 overload definitions that were tried and failed when passing a GS::Guid with the error&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;could not deduce template argument for 'const GS::Range&amp;lt;TYPE&amp;gt; &amp;amp;' from 'const GS::Guid'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;could not deduce template argument for 'const GS::Optional&amp;lt;Type&amp;gt; &amp;amp;' from 'const GS::Guid'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;could not deduce template argument for 'const GS::OptionalOnHeap&amp;lt;Type&amp;gt; &amp;amp;' from 'const GS::Guid'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to create a 4th overload (in the corresponding .hpp file) that accepts GS::Guid but cannot seem to do that correctly.&amp;nbsp; I looked at the 19 overloads from 24 and could not find one that specifically mentions a GS::Guid being passed or jumped out at me as "the one".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; The GS::Guid might have to be different???&amp;nbsp; I do not know where this came from - Is it made up and follows the correct string format?&amp;nbsp; Is it generated from a previously existing window made only to capture a guid for later creation by this API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like I am on the right track.&amp;nbsp; Any direction on this would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank - chris&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 23:20:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GS-GenerateHashValue-and-update-from-API-24-to-API-25/m-p/327374#M1946</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2022-01-17T23:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: GS::GenerateHashValue and update from API 24 to API 25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GS-GenerateHashValue-and-update-from-API-24-to-API-25/m-p/327419#M1947</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There was a slight (undocumented &lt;span class="lia-unicode-emoji" title=":crying_face:"&gt;😢&lt;/span&gt; ) change in the interface. Here's what we use now internally:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;const GS::Guid paletteGuid ("{ED83CB58-B5C9-11DF-AEF0-1531E0D72085}");&lt;BR /&gt;const Int32 paletteRefId = (Int32) GS::CalculateHashValue (paletteGuid);&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hope this helps, Akos&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 10:43:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GS-GenerateHashValue-and-update-from-API-24-to-API-25/m-p/327419#M1947</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2022-01-18T10:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: GS::GenerateHashValue and update from API 24 to API 25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GS-GenerateHashValue-and-update-from-API-24-to-API-25/m-p/327475#M1948</link>
      <description>&lt;P&gt;Akos -&lt;/P&gt;&lt;P&gt;Thanks for shining some light on this one!&lt;/P&gt;&lt;P&gt;The undocumented hints are beyond helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- chris&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 16:08:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GS-GenerateHashValue-and-update-from-API-24-to-API-25/m-p/327475#M1948</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2022-01-18T16:08:48Z</dc:date>
    </item>
  </channel>
</rss>

