<?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[Ich weiss es gibt schon tausend Threads dazu...]]></title><description><![CDATA[<p>aber leider habe ich keine &quot;passende&quot; Antwort gefunden:<br />
Wieso funkt folgender Code nicht?</p>
<pre><code class="language-cpp">CStatic *pic = (CStatic *)GetDlgItem(IDC_IDENT_IMAGE);	
CBitmap bitmap;				
if(bitmap.LoadBitmap(&quot;img/hello.bmp&quot;))
{				
	pic-&gt;SetBitmap(bitmap);			
}
else
	AfxMessageBox(&quot;Image not loaded!&quot;);
</code></pre>
<p>Er lädt das Teil einfach nicht! Warum? Der Pfad ist in Ordnung.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/69734/ich-weiss-es-gibt-schon-tausend-threads-dazu</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 16:08:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/69734.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Mar 2004 08:05:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ich weiss es gibt schon tausend Threads dazu... on Wed, 31 Mar 2004 08:05:32 GMT]]></title><description><![CDATA[<p>aber leider habe ich keine &quot;passende&quot; Antwort gefunden:<br />
Wieso funkt folgender Code nicht?</p>
<pre><code class="language-cpp">CStatic *pic = (CStatic *)GetDlgItem(IDC_IDENT_IMAGE);	
CBitmap bitmap;				
if(bitmap.LoadBitmap(&quot;img/hello.bmp&quot;))
{				
	pic-&gt;SetBitmap(bitmap);			
}
else
	AfxMessageBox(&quot;Image not loaded!&quot;);
</code></pre>
<p>Er lädt das Teil einfach nicht! Warum? Der Pfad ist in Ordnung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492190</guid><dc:creator><![CDATA[Win32Noob]]></dc:creator><pubDate>Wed, 31 Mar 2004 08:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to Ich weiss es gibt schon tausend Threads dazu... on Wed, 31 Mar 2004 08:14:25 GMT]]></title><description><![CDATA[<p>Win32Noob schrieb:</p>
<blockquote>
<pre><code class="language-cpp">if(bitmap.LoadBitmap(&quot;img/hello.bmp&quot;))
</code></pre>
<p>[...]Der Pfad ist in Ordnung.</p>
</blockquote>
<p>Ahja? Arbeitest du unter unix?<br />
Mal abgesehen davon: Schonmal mit dem Absoluten Pfad versucht? nur so zu testzwecken? Solche relativen Pfadangaben können ganz schön isn Auge gehen...</p>
<p>-junix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492196</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Wed, 31 Mar 2004 08:14:25 GMT</pubDate></item><item><title><![CDATA[Reply to Ich weiss es gibt schon tausend Threads dazu... on Wed, 31 Mar 2004 08:47:02 GMT]]></title><description><![CDATA[<p>Ich arbeite unter Windows, sollte aber kein Problem sein.<br />
Auch mit absolutem Pfad und backslashes funkt es nicht...???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492209</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492209</guid><dc:creator><![CDATA[Win32Noob]]></dc:creator><pubDate>Wed, 31 Mar 2004 08:47:02 GMT</pubDate></item><item><title><![CDATA[Reply to Ich weiss es gibt schon tausend Threads dazu... on Wed, 31 Mar 2004 10:00:19 GMT]]></title><description><![CDATA[<p><a href="http://www.codeguru.com/Cpp/G-M/bitmap/displayingandsizing/article.php/c4905" rel="nofollow">http://www.codeguru.com/Cpp/G-M/bitmap/displayingandsizing/article.php/c4905</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/492265</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492265</guid><dc:creator><![CDATA[Windalf]]></dc:creator><pubDate>Wed, 31 Mar 2004 10:00:19 GMT</pubDate></item><item><title><![CDATA[Reply to Ich weiss es gibt schon tausend Threads dazu... on Wed, 31 Mar 2004 12:45:28 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>vergiss nicht: '\' , nicht '\' für ein '\'</p>
<p>also zum Beispiel &quot;C:\\test.bmp&quot;</p>
<p>Desweiteren darfst du die Bitmapvariable nicht temporär erstellen (da sie ja sonst gelöscht wird, wenn die Funktion beendet wird).<br />
Erstell sie also als eine Membervariable des Dialogs.</p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492406</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492406</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 31 Mar 2004 12:45:28 GMT</pubDate></item><item><title><![CDATA[Reply to Ich weiss es gibt schon tausend Threads dazu... on Wed, 31 Mar 2004 13:09:15 GMT]]></title><description><![CDATA[<p>mmmhhh<br />
geht auch also Membervariable nicht. Und das die backslashes escaped werden müssen ist klar...</p>
<p>Noch jemand eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492433</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492433</guid><dc:creator><![CDATA[Win32Noob]]></dc:creator><pubDate>Wed, 31 Mar 2004 13:09:15 GMT</pubDate></item><item><title><![CDATA[Reply to Ich weiss es gibt schon tausend Threads dazu... on Wed, 31 Mar 2004 13:16:06 GMT]]></title><description><![CDATA[<p>also der link den ich dir gepostet habe geht auf jeden fall<br />
ist doch super das beschrieben brauchst du mehr oder weniger nur 1:1 kopieren...<br />
Ich bentzte das auch hin und wieder und das funzt wunderbar...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492442</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492442</guid><dc:creator><![CDATA[Windalf]]></dc:creator><pubDate>Wed, 31 Mar 2004 13:16:06 GMT</pubDate></item><item><title><![CDATA[Reply to Ich weiss es gibt schon tausend Threads dazu... on Wed, 31 Mar 2004 13:32:06 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>folgender Code müsste eigendlich auch funktionieren (Static-Einstellungen auf Bitmap setzten):<br />
in der Dialogklasse: CBitmap m_Bitmap</p>
<pre><code class="language-cpp">CStatic *pStatic = (CStatic *)GetDlgItem(IDC_IDENT_IMAGE);    
if(m_Bitmap.LoadBitmap(&quot;C:\\hello.bmp&quot;))
{                
    pStatic-&gt;SetBitmap(m_Bitmap);
}
else
    AfxMessageBox(&quot;Image not loaded!&quot;);
}
</code></pre>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492461</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 31 Mar 2004 13:32:06 GMT</pubDate></item><item><title><![CDATA[Reply to Ich weiss es gibt schon tausend Threads dazu... on Wed, 31 Mar 2004 15:56:29 GMT]]></title><description><![CDATA[<p>mmhhh keine Ahnung klappt alles nicht...</p>
<p>Kann es vielleicht sein das es daran liegt, das das Bild 24bit hat?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492549</guid><dc:creator><![CDATA[Win32Noob]]></dc:creator><pubDate>Wed, 31 Mar 2004 15:56:29 GMT</pubDate></item></channel></rss>