<?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[ImageList_add Fehler]]></title><description><![CDATA[<pre><code class="language-cpp">images = ImageList_Create(8,8,ILC_COLOR,NUM_TABS,0);
	HBITMAP h_bitmap;
    h_bitmap = (HBITMAP)LoadImage(  NULL,
                                    &quot;D:\\object.bmp&quot;,      // name or identifier of image
                                    IMAGE_BITMAP,          // type of image
                                    8,                      // desired width
                                    8,                      // desired height
                                    LR_LOADFROMFILE      // load flags
                                 );
	if(h_bitmap == NULL)
	{
		MessageBox(NULL, &quot;Error loading bitmap&quot;, &quot;a&quot;, MB_OK);
	}
	if(ImageList_Add(images, h_bitmap, NULL)==FALSE)
		MessageBox(NULL, &quot;Error adding bitmap&quot;, &quot;a&quot;, MB_OK);
</code></pre>
<p>Es kommt immer der error: &quot;Error adding bitmap&quot; aber ich hab kA warum..</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/219992/imagelist_add-fehler</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 02:01:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/219992.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Aug 2008 15:31:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ImageList_add Fehler on Sun, 10 Aug 2008 15:31:35 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">images = ImageList_Create(8,8,ILC_COLOR,NUM_TABS,0);
	HBITMAP h_bitmap;
    h_bitmap = (HBITMAP)LoadImage(  NULL,
                                    &quot;D:\\object.bmp&quot;,      // name or identifier of image
                                    IMAGE_BITMAP,          // type of image
                                    8,                      // desired width
                                    8,                      // desired height
                                    LR_LOADFROMFILE      // load flags
                                 );
	if(h_bitmap == NULL)
	{
		MessageBox(NULL, &quot;Error loading bitmap&quot;, &quot;a&quot;, MB_OK);
	}
	if(ImageList_Add(images, h_bitmap, NULL)==FALSE)
		MessageBox(NULL, &quot;Error adding bitmap&quot;, &quot;a&quot;, MB_OK);
</code></pre>
<p>Es kommt immer der error: &quot;Error adding bitmap&quot; aber ich hab kA warum..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1562279</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1562279</guid><dc:creator><![CDATA[spong3bob]]></dc:creator><pubDate>Sun, 10 Aug 2008 15:31:35 GMT</pubDate></item><item><title><![CDATA[Reply to ImageList_add Fehler on Mon, 11 Aug 2008 09:03:06 GMT]]></title><description><![CDATA[<p>Witzbold, MSDN lesen würde helfen...:</p>
<p>ImageList_Add, MSDN schrieb:</p>
<blockquote>
<p>Return Value</p>
<p><strong>Returns the index</strong> of the first new image if successful, or -1 otherwise.</p>
</blockquote>
<p>Siehe: <a href="http://msdn.microsoft.com/en-us/library/bb761512(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb761512(VS.85).aspx</a> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1562520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1562520</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Mon, 11 Aug 2008 09:03:06 GMT</pubDate></item></channel></rss>