<?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[problem mit transparentem bitmap]]></title><description><![CDATA[<p>Mit der Funktion DrawTransparentBitmap will ich eine Farbe transparent machen. Die Funktion hab ich mir von MSDN geholt. Doch leider krieg ich ne Fehlermeldung (Dev-C++ 4):</p>
<pre><code class="language-cpp">void DrawTransparentBitmap(HDC hdc, HBITMAP hBitmap, short xStart,
                           short yStart, COLORREF cTransparentColor)
   {

...

   // Each DC must select a bitmap object to store pixel data.
   bmBackOld   = SelectObject(hdcBack, bmAndBack); //&lt;- hier Fehler
   bmObjectOld = SelectObject(hdcObject, bmAndObject);//&lt;- hier Fehler
   bmMemOld    = SelectObject(hdcMem, bmAndMem);//&lt;- hier Fehler
   bmSaveOld   = SelectObject(hdcSave, bmSave);//&lt;- hier Fehler

...

   }
</code></pre>
<p>Der Fehler ist:</p>
<p>ANSI C++ forbids implicit conversion from `void *' in assignment</p>
<p>Die DrawTransparentBitmap Funktion hab ich hier her: <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;79212" rel="nofollow">http://support.microsoft.com/default.aspx?scid=kb;en-us;79212</a></p>
<p>edit: ups, da hatte ich doch glatt die falschen zeilen als fehler angestrichen</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/98328/problem-mit-transparentem-bitmap</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 20:41:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/98328.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Jan 2005 19:47:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problem mit transparentem bitmap on Tue, 18 Jan 2005 20:02:28 GMT]]></title><description><![CDATA[<p>Mit der Funktion DrawTransparentBitmap will ich eine Farbe transparent machen. Die Funktion hab ich mir von MSDN geholt. Doch leider krieg ich ne Fehlermeldung (Dev-C++ 4):</p>
<pre><code class="language-cpp">void DrawTransparentBitmap(HDC hdc, HBITMAP hBitmap, short xStart,
                           short yStart, COLORREF cTransparentColor)
   {

...

   // Each DC must select a bitmap object to store pixel data.
   bmBackOld   = SelectObject(hdcBack, bmAndBack); //&lt;- hier Fehler
   bmObjectOld = SelectObject(hdcObject, bmAndObject);//&lt;- hier Fehler
   bmMemOld    = SelectObject(hdcMem, bmAndMem);//&lt;- hier Fehler
   bmSaveOld   = SelectObject(hdcSave, bmSave);//&lt;- hier Fehler

...

   }
</code></pre>
<p>Der Fehler ist:</p>
<p>ANSI C++ forbids implicit conversion from `void *' in assignment</p>
<p>Die DrawTransparentBitmap Funktion hab ich hier her: <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;79212" rel="nofollow">http://support.microsoft.com/default.aspx?scid=kb;en-us;79212</a></p>
<p>edit: ups, da hatte ich doch glatt die falschen zeilen als fehler angestrichen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/699692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/699692</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Tue, 18 Jan 2005 20:02:28 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit transparentem bitmap on Wed, 19 Jan 2005 06:10:53 GMT]]></title><description><![CDATA[<p>Und was haben die ganzen Variablen (hdcBack, bmAndBack, ...) für Typen bei dir?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/699918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/699918</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 19 Jan 2005 06:10:53 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit transparentem bitmap on Wed, 19 Jan 2005 18:48:24 GMT]]></title><description><![CDATA[<p>flenders schrieb:</p>
<blockquote>
<p>Und was haben die ganzen Variablen (hdcBack, bmAndBack, ...) für Typen bei dir?</p>
</blockquote>
<p>Keine Ahnung, ich hab die funktion ja nicht programmiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700641</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700641</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Wed, 19 Jan 2005 18:48:24 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit transparentem bitmap on Wed, 19 Jan 2005 19:07:25 GMT]]></title><description><![CDATA[<p>probiers mal damit:</p>
<pre><code class="language-cpp">// Each DC must select a bitmap object to store pixel data.
   bmBackOld   = (HBITMAP) SelectObject(hdcBack, bmAndBack); 
   bmObjectOld = (HBITMAP) SelectObject(hdcObject, bmAndObject);
   bmMemOld    = (HBITMAP) SelectObject(hdcMem, bmAndMem);
   bmSaveOld   = (HBITMAP) SelectObject(hdcSave, bmSave);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/700657</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700657</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Wed, 19 Jan 2005 19:07:25 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit transparentem bitmap on Wed, 19 Jan 2005 19:09:24 GMT]]></title><description><![CDATA[<p>flammenvogel schrieb:</p>
<blockquote>
<p>probiers mal damit:</p>
<pre><code class="language-cpp">// Each DC must select a bitmap object to store pixel data.
   bmBackOld   = (HBITMAP) SelectObject(hdcBack, bmAndBack); 
   bmObjectOld = (HBITMAP) SelectObject(hdcObject, bmAndObject);
   bmMemOld    = (HBITMAP) SelectObject(hdcMem, bmAndMem);
   bmSaveOld   = (HBITMAP) SelectObject(hdcSave, bmSave);
</code></pre>
</blockquote>
<p>danke, klappt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/700659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/700659</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Wed, 19 Jan 2005 19:09:24 GMT</pubDate></item></channel></rss>