<?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[EndPaint =&amp;gt; The return value is always nonzero.]]></title><description><![CDATA[<p>Heya,</p>
<p>was hat denn der Rückgabewert von EndPaint zu bedeuten?</p>
<p>Da steht: The return value is always nonzero.</p>
<p>Wie testet man denn dann auf Erfolg?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/85953/endpaint-gt-the-return-value-is-always-nonzero</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 07:45:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/85953.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Sep 2004 13:10:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EndPaint =&amp;gt; The return value is always nonzero. on Tue, 14 Sep 2004 13:10:06 GMT]]></title><description><![CDATA[<p>Heya,</p>
<p>was hat denn der Rückgabewert von EndPaint zu bedeuten?</p>
<p>Da steht: The return value is always nonzero.</p>
<p>Wie testet man denn dann auf Erfolg?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/606937</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/606937</guid><dc:creator><![CDATA[painter]]></dc:creator><pubDate>Tue, 14 Sep 2004 13:10:06 GMT</pubDate></item><item><title><![CDATA[Reply to EndPaint =&amp;gt; The return value is always nonzero. on Tue, 14 Sep 2004 13:54:13 GMT]]></title><description><![CDATA[<p>Gar nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/606986</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/606986</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 14 Sep 2004 13:54:13 GMT</pubDate></item><item><title><![CDATA[Reply to EndPaint =&amp;gt; The return value is always nonzero. on Tue, 14 Sep 2004 15:02:08 GMT]]></title><description><![CDATA[<p>Danke für die Bestätigung. ;-)))<br />
Das dachte ich mir nämlich auch. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
<p>Dann frage ich mich nur warum überhaupt die Funktion BOOL zurückgibt und nicht VOID.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/607063</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/607063</guid><dc:creator><![CDATA[painter]]></dc:creator><pubDate>Tue, 14 Sep 2004 15:02:08 GMT</pubDate></item><item><title><![CDATA[Reply to EndPaint =&amp;gt; The return value is always nonzero. on Tue, 14 Sep 2004 19:52:18 GMT]]></title><description><![CDATA[<p>Probably for historical reasons.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/607332</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/607332</guid><dc:creator><![CDATA[Historiker]]></dc:creator><pubDate>Tue, 14 Sep 2004 19:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to EndPaint =&amp;gt; The return value is always nonzero. on Tue, 14 Sep 2004 21:48:26 GMT]]></title><description><![CDATA[<p>painter schrieb:</p>
<blockquote>
<p>Heya,</p>
<p>was hat denn der Rückgabewert von EndPaint zu bedeuten?</p>
<p>Da steht: The return value is always nonzero.</p>
<p>Wie testet man denn dann auf Erfolg?</p>
</blockquote>
<p>Denn erfolg testes du bei deinen Zeichenoperationen, EndPaint giebt<br />
nur das DC frei, und das klappt immer, auch wenn BeginPaint fehlgeschlagen ist,<br />
und wenn BeginPaint fehlgeschlagen ist, kannst du dessen rückwert auf NULL testen<br />
und wenn NULL, so brauchst du EndPaint nicht aufrufen.<br />
Da aber EndPaint einen Vergleichswert liefern soll für Vernünftige Struktur, ist dieser bool und immer true, da EndPaint in jedenFall seine Arbeit macht auch<br />
wenn keine da ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Verstehst du jetzt die (M$) Logic?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/607411</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/607411</guid><dc:creator><![CDATA[MiC++ha]]></dc:creator><pubDate>Tue, 14 Sep 2004 21:48:26 GMT</pubDate></item></channel></rss>