<?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[Fehler bei LoadBitmap: Mal error 6, mal 1813]]></title><description><![CDATA[<p>Hallo.<br />
Das ist doch schon seltsam.<br />
Wenn ich innerhalb meiner Nachrichtenfunktion in der WM_CREATE<br />
einfach mal</p>
<pre><code>HBITMAP hsk = LoadBitmap((HINSTANCE)GetWindowLong(mwinhan,GWL_HINSTANCE),
                         MAKEINTRESOURCE(IDM_BMP);
</code></pre>
<h2>prüfe ich das mit dem MessageBox-verfahren und sehe Fehler 1813.-&gt;Resource Type not found<br />
----<br />
Deklariere ich das HBITMAP global und rufe ich die Funktion in der WinMain Funktion auf, übergebe ich ihr direkt das Hinstance als &quot;thisone&quot;.<br />
Dann aber ist der errorcode 6.-&gt; Invalid handle</h2>
<p>flip.h<br />
#define IDM_BMP 101</p>
<p>flip.rc</p>
<p>IDM_BMP BITMAP DISCARDABLE &quot;skin1.bmp&quot;<br />
--------------------------------------------------------------------------------<br />
Was kann ich denn da tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/179485/fehler-bei-loadbitmap-mal-error-6-mal-1813</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Jul 2026 15:55:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/179485.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Apr 2007 12:58:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler bei LoadBitmap: Mal error 6, mal 1813 on Sun, 22 Apr 2007 12:58:03 GMT]]></title><description><![CDATA[<p>Hallo.<br />
Das ist doch schon seltsam.<br />
Wenn ich innerhalb meiner Nachrichtenfunktion in der WM_CREATE<br />
einfach mal</p>
<pre><code>HBITMAP hsk = LoadBitmap((HINSTANCE)GetWindowLong(mwinhan,GWL_HINSTANCE),
                         MAKEINTRESOURCE(IDM_BMP);
</code></pre>
<h2>prüfe ich das mit dem MessageBox-verfahren und sehe Fehler 1813.-&gt;Resource Type not found<br />
----<br />
Deklariere ich das HBITMAP global und rufe ich die Funktion in der WinMain Funktion auf, übergebe ich ihr direkt das Hinstance als &quot;thisone&quot;.<br />
Dann aber ist der errorcode 6.-&gt; Invalid handle</h2>
<p>flip.h<br />
#define IDM_BMP 101</p>
<p>flip.rc</p>
<p>IDM_BMP BITMAP DISCARDABLE &quot;skin1.bmp&quot;<br />
--------------------------------------------------------------------------------<br />
Was kann ich denn da tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1271086</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1271086</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Sun, 22 Apr 2007 12:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei LoadBitmap: Mal error 6, mal 1813 on Sun, 22 Apr 2007 13:04:53 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">HBITMAP hBitmap = LoadBitmap(GetModuleHandle(NULL),MAKEINTRESOURCE(IDM_BMP));
if (hBitmap == NULL) 
    MessageBox(NULL, TEXT(&quot;Could not load image&quot;), NULL, MB_OK | MB_ICONERROR);
</code></pre>
<p>geht nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1271093</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1271093</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 22 Apr 2007 13:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei LoadBitmap: Mal error 6, mal 1813 on Sun, 22 Apr 2007 14:13:22 GMT]]></title><description><![CDATA[<p>Innerhalb der WinMain erzeugt die Funktion mit dem GetModuleHandle(NULL)-Argument ebenfalls den Errorcode 6.<br />
Ich raffs net....<br />
ich versuchs nun nochmal mit GetModuleHandle in der Nachrichtenschleife!!!!<br />
Da kommt wieder 1813.<br />
Was ich nicht raff:<br />
Wieso soll der Ressourcen Typ nicht erkannt werden?<br />
Andererseits:<br />
Seit dem ich mein Windows etwas abgespeckt habe und auch paint.exe rausnahm sind bei mir alle .bmps mit dem Symbol eines RichText feldes angezeigt.<br />
Das Standardöffnen per linke Maustatse &quot;öffnen mit&quot;, bringt nichtmal Adobe dazu, die zu öffnen.<br />
Aber in der Registry stehen sie als Datentypen noch drin.....<br />
grübel .....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1271109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1271109</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Sun, 22 Apr 2007 14:13:22 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei LoadBitmap: Mal error 6, mal 1813 on Sun, 22 Apr 2007 14:56:59 GMT]]></title><description><![CDATA[<p>Hier ein Auszug aus der &quot;winerror.h&quot; :</p>
<pre><code class="language-cpp">// MessageId: ERROR_RESOURCE_TYPE_NOT_FOUND
//
// MessageText:
//
//  The specified resource type cannot be found in the image file.
//
#define ERROR_RESOURCE_TYPE_NOT_FOUND    1813L
</code></pre>
<p>Prüf mal, ob die Ressource in die EXE &quot;reinkompiliert&quot; wurde.<br />
Ev. Kompilereinstellungen überprüfen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1271154</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1271154</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 22 Apr 2007 14:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei LoadBitmap: Mal error 6, mal 1813 on Mon, 23 Apr 2007 06:41:16 GMT]]></title><description><![CDATA[<p>Da steht das so detailiert?<br />
Auch nicht schlecht.<br />
Werd mir mal dein Tipp zu Herzen nehmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1271476</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1271476</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Mon, 23 Apr 2007 06:41:16 GMT</pubDate></item></channel></rss>