<?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 acDbEntity like a parameter of function - problem in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/acdbentity-like-a-parameter-of-function-problem/m-p/2298515#M18735</link>
    <description>I tried send pointer to AcDbEntity object to my function, and AutoCad has still error - viz attached file.&lt;BR /&gt;
&lt;BR /&gt;
this is the code:&lt;BR /&gt;
void Pokus(AcDbEntity *textEnt)&lt;BR /&gt;
{&lt;BR /&gt;
}&lt;BR /&gt;
AcDbEntity *textEnt;&lt;BR /&gt;
Pokus(textEnt);&lt;BR /&gt;
&lt;BR /&gt;
when I had changed type of calling parameter by reference (&amp;amp;), the probelm was resolved.. the new code:&lt;BR /&gt;
void Pokus(AcDbEntity *&amp;amp;textEnt)&lt;BR /&gt;
{&lt;BR /&gt;
}&lt;BR /&gt;
AcDbEntity *textEnt;&lt;BR /&gt;
Pokus(textEnt);&lt;BR /&gt;
&lt;BR /&gt;
Do somebody know, why have I to call pointer to AacDbEntity by reference ?</description>
    <pubDate>Sun, 13 Jul 2008 21:07:00 GMT</pubDate>
    <dc:creator>majklha</dc:creator>
    <dc:date>2008-07-13T21:07:00Z</dc:date>
    <item>
      <title>acDbEntity like a parameter of function - problem</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbentity-like-a-parameter-of-function-problem/m-p/2298515#M18735</link>
      <description>I tried send pointer to AcDbEntity object to my function, and AutoCad has still error - viz attached file.&lt;BR /&gt;
&lt;BR /&gt;
this is the code:&lt;BR /&gt;
void Pokus(AcDbEntity *textEnt)&lt;BR /&gt;
{&lt;BR /&gt;
}&lt;BR /&gt;
AcDbEntity *textEnt;&lt;BR /&gt;
Pokus(textEnt);&lt;BR /&gt;
&lt;BR /&gt;
when I had changed type of calling parameter by reference (&amp;amp;), the probelm was resolved.. the new code:&lt;BR /&gt;
void Pokus(AcDbEntity *&amp;amp;textEnt)&lt;BR /&gt;
{&lt;BR /&gt;
}&lt;BR /&gt;
AcDbEntity *textEnt;&lt;BR /&gt;
Pokus(textEnt);&lt;BR /&gt;
&lt;BR /&gt;
Do somebody know, why have I to call pointer to AacDbEntity by reference ?</description>
      <pubDate>Sun, 13 Jul 2008 21:07:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbentity-like-a-parameter-of-function-problem/m-p/2298515#M18735</guid>
      <dc:creator>majklha</dc:creator>
      <dc:date>2008-07-13T21:07:00Z</dc:date>
    </item>
  </channel>
</rss>

