<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Compiler -Fehler ?]]></title><description><![CDATA[<p>Ich erzeuge ein Pointer in der cpp -Datei<br />
MObject* pPointer = new MObject();<br />
pPointer-&gt;sName = &quot;xxx&quot;;<br />
if( pPointer == NULL )<br />
xxxxx</p>
<p>Der pPointer ist nicht NULL .</p>
<p>dann deklariere ich einen Pointer in der header -Datei<br />
MObject* m_pPointer;</p>
<p>Und jetzt mache ich die Zuweisung: m_pPointer = pPointer;<br />
Jetzt mache ich folgende Abfrage: if( m_pPointer ==NULL )<br />
Und der pPointer ist NULL ! Er zeigt nicht auf das MObject.</p>
<p>Hat jemand so etwas Komisches gehabt ?</p>
<p>Gruß , Elke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/128182/compiler-fehler</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 12:59:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/128182.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Dec 2005 09:38:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compiler -Fehler ? on Thu, 01 Dec 2005 09:38:32 GMT]]></title><description><![CDATA[<p>Ich erzeuge ein Pointer in der cpp -Datei<br />
MObject* pPointer = new MObject();<br />
pPointer-&gt;sName = &quot;xxx&quot;;<br />
if( pPointer == NULL )<br />
xxxxx</p>
<p>Der pPointer ist nicht NULL .</p>
<p>dann deklariere ich einen Pointer in der header -Datei<br />
MObject* m_pPointer;</p>
<p>Und jetzt mache ich die Zuweisung: m_pPointer = pPointer;<br />
Jetzt mache ich folgende Abfrage: if( m_pPointer ==NULL )<br />
Und der pPointer ist NULL ! Er zeigt nicht auf das MObject.</p>
<p>Hat jemand so etwas Komisches gehabt ?</p>
<p>Gruß , Elke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931191</guid><dc:creator><![CDATA[Elke]]></dc:creator><pubDate>Thu, 01 Dec 2005 09:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler -Fehler ? on Thu, 01 Dec 2005 10:09:49 GMT]]></title><description><![CDATA[<p>betroffener Code?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931215</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Thu, 01 Dec 2005 10:09:49 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler -Fehler ? on Thu, 01 Dec 2005 17:02:39 GMT]]></title><description><![CDATA[<p>Elke schrieb:</p>
<blockquote>
<p>Der pPointer ist nicht NULL .</p>
</blockquote>
<p>Logisch, sonst wäre ja eine Exception geflogen. Eine Abfrage auf NULL bringt also nix.</p>
<p>Elke schrieb:</p>
<blockquote>
<p>Und jetzt mache ich die Zuweisung: m_pPointer = pPointer;<br />
Jetzt mache ich folgende Abfrage: if( m_pPointer ==NULL )</p>
</blockquote>
<p>Und wo und wie machst du das? Wenn m_pPointer NULL ist, dann ist auch pPointer NULL. Wie wir aber bereits festgestellt haben, kann das nicht der Fall sein. Zeig also mal die betreffende Stelle.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931512</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Thu, 01 Dec 2005 17:02:39 GMT</pubDate></item></channel></rss>