<?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: newbie question in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-question/m-p/144107#M6374</link>
    <description>&lt;BLOCKQUOTE&gt;atila-diffusion wrote:&lt;BR /&gt;Hi all,&lt;BR /&gt;
&lt;BR /&gt;
So, for debug my add-on, I use ACAPI_WriteReport() function for display a const char*. But I would like to display a int and cast doesn't works &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;.&lt;BR /&gt;
&lt;BR /&gt;
I search for an other function but no result...&lt;BR /&gt;
Did you have an idea for display a int ?&lt;BR /&gt;
&lt;BR /&gt;
PS : Pointbreaks does'nt works too...&lt;/BLOCKQUOTE&gt;

In C, you cannot cast an int to a const char*.&lt;BR /&gt;
&lt;BR /&gt;
Do something like this:
&lt;PRE&gt;char message[256];
int val = 27;
sprintf (message, "Integer value: %d", val);
ACAPI_WriteReport (message);&lt;/PRE&gt;

I'd recommend looking at a basic C/C++ tutorial before diving into the API.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
    <pubDate>Wed, 08 Aug 2012 14:22:15 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2012-08-08T14:22:15Z</dc:date>
    <item>
      <title>newbie question</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-question/m-p/144105#M6372</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;So, for debug my add-on, I use ACAPI_WriteReport() function for display a const char*. But I would like to display a int and cast doesn't works &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" border="0" /&gt;.&lt;BR /&gt;&lt;BR /&gt;I search for an other function but no result...&lt;BR /&gt;Did you have an idea for display a int ?&lt;BR /&gt;&lt;BR /&gt;PS : Pointbreaks does'nt works too...&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 14:30:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/newbie-question/m-p/144105#M6372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-02T14:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: newbie question</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-question/m-p/144106#M6373</link>
      <description>&lt;BLOCKQUOTE&gt;atila-diffusion wrote:&lt;BR /&gt;So, for debug my add-on, I use ACAPI_WriteReport() function for display a const char*. But I would like to display a int and cast doesn't works&lt;/BLOCKQUOTE&gt;
Are you not able to use the debugger, i.e. set breakpoints, step through the code, and examine variables directly? Which compiler/IDE are you using?</description>
      <pubDate>Thu, 03 May 2012 22:08:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/newbie-question/m-p/144106#M6373</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2012-05-03T22:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: newbie question</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-question/m-p/144107#M6374</link>
      <description>&lt;BLOCKQUOTE&gt;atila-diffusion wrote:&lt;BR /&gt;Hi all,&lt;BR /&gt;
&lt;BR /&gt;
So, for debug my add-on, I use ACAPI_WriteReport() function for display a const char*. But I would like to display a int and cast doesn't works &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;.&lt;BR /&gt;
&lt;BR /&gt;
I search for an other function but no result...&lt;BR /&gt;
Did you have an idea for display a int ?&lt;BR /&gt;
&lt;BR /&gt;
PS : Pointbreaks does'nt works too...&lt;/BLOCKQUOTE&gt;

In C, you cannot cast an int to a const char*.&lt;BR /&gt;
&lt;BR /&gt;
Do something like this:
&lt;PRE&gt;char message[256];
int val = 27;
sprintf (message, "Integer value: %d", val);
ACAPI_WriteReport (message);&lt;/PRE&gt;

I'd recommend looking at a basic C/C++ tutorial before diving into the API.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Wed, 08 Aug 2012 14:22:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/newbie-question/m-p/144107#M6374</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2012-08-08T14:22:15Z</dc:date>
    </item>
  </channel>
</rss>

