<?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[Bitmap laden]]></title><description><![CDATA[<p>Hallo,<br />
kann mir jemand einen Tip geben, was ich falsch mache.<br />
Ich möchte eine Bitmap-Datei, deren Name ich selbst im Programm angeben will (also kein Hintergrundbild) laden und anzeigen. Dazu habe ich vereinbart:</p>
<p>CBitmap Bild;<br />
BITMAP bm;<br />
FILE *datei;<br />
char datei_name[80];</p>
<p>und das folgende Programm geschrieben:</p>
<p>CPaintDC dc(this);<br />
CPaintDC* pDC=&amp;dc;<br />
strcpy(datei_name,&quot;c:\\Bilbao.bmp&quot;);<br />
HBITMAP hBitmap=(HBITMAP)::LoadImage(AfxGetInstanceHandle(),<br />
datei_name,IMAGE_BITMAP,0,0,LR_DEFAULTCOLOR);<br />
Bild.Attach(hBitmap);<br />
CDC dcMem;<br />
dcMem.CreateCompatibleDC(pDC);<br />
dcMem.SelectObject(&amp;Bild);<br />
dc.BitBlt(10,10,bm.bmWidth,bm.bmHeight,&amp;dcMem,0,0,SRCCOPY);</p>
<p>Lässt sich fehlerfrei übersetzen, tut aber nichts.<br />
Was mache ich falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/81533/bitmap-laden</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 08:32:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/81533.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Aug 2004 05:54:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitmap laden on Mon, 02 Aug 2004 05:54:17 GMT]]></title><description><![CDATA[<p>Hallo,<br />
kann mir jemand einen Tip geben, was ich falsch mache.<br />
Ich möchte eine Bitmap-Datei, deren Name ich selbst im Programm angeben will (also kein Hintergrundbild) laden und anzeigen. Dazu habe ich vereinbart:</p>
<p>CBitmap Bild;<br />
BITMAP bm;<br />
FILE *datei;<br />
char datei_name[80];</p>
<p>und das folgende Programm geschrieben:</p>
<p>CPaintDC dc(this);<br />
CPaintDC* pDC=&amp;dc;<br />
strcpy(datei_name,&quot;c:\\Bilbao.bmp&quot;);<br />
HBITMAP hBitmap=(HBITMAP)::LoadImage(AfxGetInstanceHandle(),<br />
datei_name,IMAGE_BITMAP,0,0,LR_DEFAULTCOLOR);<br />
Bild.Attach(hBitmap);<br />
CDC dcMem;<br />
dcMem.CreateCompatibleDC(pDC);<br />
dcMem.SelectObject(&amp;Bild);<br />
dc.BitBlt(10,10,bm.bmWidth,bm.bmHeight,&amp;dcMem,0,0,SRCCOPY);</p>
<p>Lässt sich fehlerfrei übersetzen, tut aber nichts.<br />
Was mache ich falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/573046</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/573046</guid><dc:creator><![CDATA[Heiner.Tajo]]></dc:creator><pubDate>Mon, 02 Aug 2004 05:54:17 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap laden on Mon, 02 Aug 2004 18:41:05 GMT]]></title><description><![CDATA[<p>Entweder fehlt :</p>
<pre><code>bild.GetBitmap(&amp;bm);
</code></pre>
<p>oder du musst das alles mal mit CString versuchen ...</p>
<p>Gruß<br />
:: NoName ::</p>
]]></description><link>https://www.c-plusplus.net/forum/post/573683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/573683</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Mon, 02 Aug 2004 18:41:05 GMT</pubDate></item></channel></rss>