<?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: Problems, problems, problems in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Problems-problems-problems/m-p/17107#M7388</link>
    <description>&lt;BLOCKQUOTE&gt;Marius wrote:&lt;BR /&gt;Well, it works. I was using memset function. From now on I'll try to search for an Archicad API function to use instead of the ordinary C++ functions each time I'm in trouble.&lt;/BLOCKQUOTE&gt;
memset wouldn't be appropriate anyway because it doesn't allocate a block of memory either - that function simply replicates a char for a specified number of times starting at a specified location.&lt;BR /&gt;
By all means get to know what the API offers and use it. In the context of ArchiCAD development it will save you time and headaches, and improve compatibility as ArchiCAD changes.&lt;BR /&gt;
I recommend that you look closely at the ArchiCAD API String Manager too.</description>
    <pubDate>Fri, 30 Mar 2007 12:30:02 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2007-03-30T12:30:02Z</dc:date>
    <item>
      <title>Problems, problems, problems</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problems-problems-problems/m-p/17104#M7385</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hy. I've just run acroos a very ... interesting problem. I'm trying to create Text and Label objects from an API script. The Memo.textContent field of the object shoud contain something like 119.45, 280.14, etc. Instead of the expected result, the object contains something like 119ÌÌÌÌÌÌÌÌÌsÌÌÌ or 280ÌÌÌÌÌÌÌÌÌÌÌÌÌ. The really tricky part is that I don't always get these amazing results, because the script runs as expected in 50% of the situations. Could this be a database related issue that I haven't figured out yet or it's just me on a wrong way to init pointer string variables in VC++?&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:41:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problems-problems-problems/m-p/17104#M7385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T08:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problems, problems, problems</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problems-problems-problems/m-p/17105#M7386</link>
      <description>&lt;BLOCKQUOTE&gt;Marius wrote:&lt;BR /&gt;I'm trying to create Text and Label objects from an API script. The Memo.textContent field of the object shoud contain something like 119.45, 280.14, etc. Instead of the expected result, the object contains something like 119ÌÌÌÌÌÌÌÌÌsÌÌÌ or 280ÌÌÌÌÌÌÌÌÌÌÌÌÌ.&lt;/BLOCKQUOTE&gt;
Are you allocating space for the handle to store your text when you construct the memo fields? What you are describing suggests your text has been overwritten, which is likely to occur if you haven't allocated space for it - you could easily cause a crash when writing the text to an unallocated handle too. If this is the case, take a look at BMAllocateHandle for a start.&lt;BR /&gt;
&lt;BR /&gt;
Ralph.</description>
      <pubDate>Fri, 30 Mar 2007 11:14:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problems-problems-problems/m-p/17105#M7386</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2007-03-30T11:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems, problems, problems</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problems-problems-problems/m-p/17106#M7387</link>
      <description>Well, it works. I was using memset function. From now on I'll try to search for an Archicad API function to use instead of the ordinary C++ functions each time I'm in trouble.&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot! Again! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Fri, 30 Mar 2007 11:51:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problems-problems-problems/m-p/17106#M7387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-30T11:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems, problems, problems</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problems-problems-problems/m-p/17107#M7388</link>
      <description>&lt;BLOCKQUOTE&gt;Marius wrote:&lt;BR /&gt;Well, it works. I was using memset function. From now on I'll try to search for an Archicad API function to use instead of the ordinary C++ functions each time I'm in trouble.&lt;/BLOCKQUOTE&gt;
memset wouldn't be appropriate anyway because it doesn't allocate a block of memory either - that function simply replicates a char for a specified number of times starting at a specified location.&lt;BR /&gt;
By all means get to know what the API offers and use it. In the context of ArchiCAD development it will save you time and headaches, and improve compatibility as ArchiCAD changes.&lt;BR /&gt;
I recommend that you look closely at the ArchiCAD API String Manager too.</description>
      <pubDate>Fri, 30 Mar 2007 12:30:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problems-problems-problems/m-p/17107#M7388</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2007-03-30T12:30:02Z</dc:date>
    </item>
  </channel>
</rss>

