<?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[Ressource type not found!]]></title><description><![CDATA[<p>Hallo, Dank eines genialen Tutorials von FLipcode bin ich nun regioned windows am skinnen.<br />
Ne?<br />
Und obiger Fehler, auch unter 1813 bekannt tritt einfach immer auf, Ich weiss echt nicht wieso.Hier mal die drei beteiligten Datein. Hoffe, einer von Euch weiss eine Lösung:<br />
----------</p>
<pre><code>// flip_MAIN.cpp
#define STRICT
#include&lt;windows.h&gt;
#include &quot;flip.h&quot;
//---------------preprocessing--------------------------------------------------
LRESULT CALLBACK MessFunc(HWND, UINT, WPARAM,LPARAM);
char szApNa[] = &quot;Regions---the first trial&quot;;
HBITMAP hskin;
//------global vars and funcs---------------------------------------------------
int WINAPI WinMain(HINSTANCE hiact,HINSTANCE hiprev, LPSTR cmdline, int showhow)
{
  MSG mess;
  WNDCLASS wcx;
  HWND thisone;

  wcx.cbClsExtra = 0;
  wcx.cbWndExtra = 0;
  wcx.hInstance = hiact;
  wcx.lpfnWndProc = MessFunc;
  wcx.lpszClassName = szApNa;
  wcx.lpszMenuName = NULL;

  wcx.hbrBackground = (HBRUSH)CreateSolidBrush(RGB(120,140,200));
  wcx.hIcon = LoadIcon(NULL,IDI_EXCLAMATION);
  wcx.hCursor = LoadCursor(NULL, IDC_ARROW);
  wcx.style = CS_VREDRAW | CS_HREDRAW;

  if(!RegisterClass(&amp;wcx))
  {
    MessageBox(NULL,&quot;Error occured&quot;, &quot;Registration failed&quot;,MB_OK);
    return 0;
  }

  thisone = CreateWindow( szApNa, szApNa,
                          WS_OVERLAPPEDWINDOW,
                          CW_USEDEFAULT,CW_USEDEFAULT,200,200,
                          NULL,
                          NULL,
                          hiact,
                          NULL
                        );
  ShowWindow(thisone,showhow);
  UpdateWindow(thisone);

  while(GetMessage(&amp;mess,NULL,0,0))
  {
    TranslateMessage(&amp;mess);
    DispatchMessage(&amp;mess);
  }
  return mess.wParam;  
}
LRESULT CALLBACK MessFunc(HWND mwinhan,UINT mcode, WPARAM wm_Wflags,LPARAM wm_Lflags)
{ 

  POINT a,b,c,d,e,f,g,h;
        a.x=80;  a.y=0;
        b.x=140; b.y=0;
        c.x=180; c.y=40;
        d.x=180; d.y=120;
        e.x=140;  e.y=160;
        f.x=80;  f.y=160;
        g.x=40;  g.y=120;
        h.x=40;  h.y=40;        

  switch(mcode)
  {

    case WM_CREATE:
    {    
        const POINT pt[] = {a,b,c,d,e,f,g,h};                        
        HRGN rg1 = CreatePolygonRgn(pt,8,ALTERNATE);
        SetWindowRgn(mwinhan,rg1,true);
        DeleteObject(rg1);           
        HBITMAP hskin = LoadBitmap(GetModuleHandle(NULL),
                                    MAKEINTRESOURCE(IDI_BMP));
        char ch[10];                                    
        if(!hskin)
        {            
            MessageBox(NULL,itoa(GetLastError(),ch,10),&quot;Error&quot;,MB_OK);
        return 0;
        }    

     break;
    }
    case WM_LBUTTONDOWN:
    {
    break;
    }
    case WM_MOUSEMOVE:
    {
    break;
    }
    case WM_PAINT:
    {

    break;
    }      
    case WM_DESTROY:
    {
      PostQuitMessage(0);
      return 0;
    }
  }

  return DefWindowProc(mwinhan,mcode,wm_Wflags,wm_Lflags);  
}
</code></pre>
<p>----</p>
<pre><code>// flip.rc
#include&lt;windows.h&gt;
#include&lt;flip.h&gt;
IDI_BMP                BITMAP         &quot;Skin1.bmp&quot;
</code></pre>
<p>----</p>
<pre><code>//flip.h
#define IDI_BMP         101
</code></pre>
<p>Mir wäre echt geholfen, wenn jemand das lösen könnte.<br />
Danke schonmal.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/179622/ressource-type-not-found</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Jul 2026 14:31:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/179622.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Apr 2007 20:10:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ressource type not found! on Mon, 23 Apr 2007 20:11:55 GMT]]></title><description><![CDATA[<p>Hallo, Dank eines genialen Tutorials von FLipcode bin ich nun regioned windows am skinnen.<br />
Ne?<br />
Und obiger Fehler, auch unter 1813 bekannt tritt einfach immer auf, Ich weiss echt nicht wieso.Hier mal die drei beteiligten Datein. Hoffe, einer von Euch weiss eine Lösung:<br />
----------</p>
<pre><code>// flip_MAIN.cpp
#define STRICT
#include&lt;windows.h&gt;
#include &quot;flip.h&quot;
//---------------preprocessing--------------------------------------------------
LRESULT CALLBACK MessFunc(HWND, UINT, WPARAM,LPARAM);
char szApNa[] = &quot;Regions---the first trial&quot;;
HBITMAP hskin;
//------global vars and funcs---------------------------------------------------
int WINAPI WinMain(HINSTANCE hiact,HINSTANCE hiprev, LPSTR cmdline, int showhow)
{
  MSG mess;
  WNDCLASS wcx;
  HWND thisone;

  wcx.cbClsExtra = 0;
  wcx.cbWndExtra = 0;
  wcx.hInstance = hiact;
  wcx.lpfnWndProc = MessFunc;
  wcx.lpszClassName = szApNa;
  wcx.lpszMenuName = NULL;

  wcx.hbrBackground = (HBRUSH)CreateSolidBrush(RGB(120,140,200));
  wcx.hIcon = LoadIcon(NULL,IDI_EXCLAMATION);
  wcx.hCursor = LoadCursor(NULL, IDC_ARROW);
  wcx.style = CS_VREDRAW | CS_HREDRAW;

  if(!RegisterClass(&amp;wcx))
  {
    MessageBox(NULL,&quot;Error occured&quot;, &quot;Registration failed&quot;,MB_OK);
    return 0;
  }

  thisone = CreateWindow( szApNa, szApNa,
                          WS_OVERLAPPEDWINDOW,
                          CW_USEDEFAULT,CW_USEDEFAULT,200,200,
                          NULL,
                          NULL,
                          hiact,
                          NULL
                        );
  ShowWindow(thisone,showhow);
  UpdateWindow(thisone);

  while(GetMessage(&amp;mess,NULL,0,0))
  {
    TranslateMessage(&amp;mess);
    DispatchMessage(&amp;mess);
  }
  return mess.wParam;  
}
LRESULT CALLBACK MessFunc(HWND mwinhan,UINT mcode, WPARAM wm_Wflags,LPARAM wm_Lflags)
{ 

  POINT a,b,c,d,e,f,g,h;
        a.x=80;  a.y=0;
        b.x=140; b.y=0;
        c.x=180; c.y=40;
        d.x=180; d.y=120;
        e.x=140;  e.y=160;
        f.x=80;  f.y=160;
        g.x=40;  g.y=120;
        h.x=40;  h.y=40;        

  switch(mcode)
  {

    case WM_CREATE:
    {    
        const POINT pt[] = {a,b,c,d,e,f,g,h};                        
        HRGN rg1 = CreatePolygonRgn(pt,8,ALTERNATE);
        SetWindowRgn(mwinhan,rg1,true);
        DeleteObject(rg1);           
        HBITMAP hskin = LoadBitmap(GetModuleHandle(NULL),
                                    MAKEINTRESOURCE(IDI_BMP));
        char ch[10];                                    
        if(!hskin)
        {            
            MessageBox(NULL,itoa(GetLastError(),ch,10),&quot;Error&quot;,MB_OK);
        return 0;
        }    

     break;
    }
    case WM_LBUTTONDOWN:
    {
    break;
    }
    case WM_MOUSEMOVE:
    {
    break;
    }
    case WM_PAINT:
    {

    break;
    }      
    case WM_DESTROY:
    {
      PostQuitMessage(0);
      return 0;
    }
  }

  return DefWindowProc(mwinhan,mcode,wm_Wflags,wm_Lflags);  
}
</code></pre>
<p>----</p>
<pre><code>// flip.rc
#include&lt;windows.h&gt;
#include&lt;flip.h&gt;
IDI_BMP                BITMAP         &quot;Skin1.bmp&quot;
</code></pre>
<p>----</p>
<pre><code>//flip.h
#define IDI_BMP         101
</code></pre>
<p>Mir wäre echt geholfen, wenn jemand das lösen könnte.<br />
Danke schonmal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1272008</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1272008</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Mon, 23 Apr 2007 20:11:55 GMT</pubDate></item><item><title><![CDATA[Reply to Ressource type not found! on Tue, 24 Apr 2007 06:27:35 GMT]]></title><description><![CDATA[<p>Öffne mal die EXE selbst in der IDE und schau mal rein ob diese Bitmap wirklich auch in der EXE drin ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1272141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1272141</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 24 Apr 2007 06:27:35 GMT</pubDate></item><item><title><![CDATA[Reply to Ressource type not found! on Tue, 24 Apr 2007 06:29:03 GMT]]></title><description><![CDATA[<p>BTW: Ich würde hiact in einer globalen Variable g_hInstance speichern und nicht GetModuleHandle(NULL) verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1272143</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1272143</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 24 Apr 2007 06:29:03 GMT</pubDate></item><item><title><![CDATA[Reply to Ressource type not found! on Tue, 24 Apr 2007 09:20:28 GMT]]></title><description><![CDATA[<h2>Das mit der globalen Variable habe ich auch schon versucht.<br />
Nix, ich habe sogar die LoadBitmap in die WinMain selber gepackt, das wiederum löste ein INVALID HANDLE- error aus.</h2>
<p>Aber das mit der exe selber öffnen?<br />
Ist die nicht binär? Wie soll ich denn da die Skin1.bmp WÖRTLICH finden?<br />
Danke bereits.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1272248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1272248</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Tue, 24 Apr 2007 09:20:28 GMT</pubDate></item><item><title><![CDATA[Reply to Ressource type not found! on Tue, 24 Apr 2007 10:01:25 GMT]]></title><description><![CDATA[<p>Die IDE kann eine EXE öffnen und die darin enthaltenen Ressourcen anzeigen. Du müsstest in der EXE eine Bitmap mit der DI 101 finden!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1272272</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1272272</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 24 Apr 2007 10:01:25 GMT</pubDate></item><item><title><![CDATA[Reply to Ressource type not found! on Tue, 24 Apr 2007 10:20:45 GMT]]></title><description><![CDATA[<h2>Ich dacht immer, einmal binär bleibt binär und nur das dissasemblen wäre noch eine Lösung, das irgendwie zurückzubekommen.<br />
Da fällt mir ein: Es gibt ( und soll ja nicht gehen ) keinen Parser, der etwas dissassembliertes in c-code übersetzt. Das wär sicher mal n Projekt wert.<br />
Sone Art c-Recoder.<br />
....<br />
Aber falls ich die ID 101 NICHT in meiner Exe finde, dann kann ich davon ausgehen, dass der binder die nicht zusammen gebunden hat.<br />
Aber aus welchem Grund sollte er das nicht tun?<br />
Wenn ich bei dev-cpp mein Projekt auf habe, aud Datei-&gt; neu-&gt; Ressource gehe, dann fragt mich dev-cpp sowieso, ob ich die neue Ressource dem Projekt hinzufügen will. Das habe ich bisher immer bejaht.</h2>
<p>Ich sehe heute mal nach.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1272285</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1272285</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Tue, 24 Apr 2007 10:20:45 GMT</pubDate></item><item><title><![CDATA[Reply to Ressource type not found! on Tue, 24 Apr 2007 11:14:10 GMT]]></title><description><![CDATA[<p>me-S-on schrieb:</p>
<blockquote>
<p>Ich dacht immer, einmal binär bleibt binär und nur das dissasemblen wäre noch eine Lösung, das irgendwie zurückzubekommen.</p>
</blockquote>
<p>Das gilt für den Code, aber nicht für die Ressourcen (die werden gesondert in die EXE reingepackt)</p>
<blockquote>
<p>Da fällt mir ein: Es gibt ( und soll ja nicht gehen ) keinen Parser, der etwas dissassembliertes in c-code übersetzt. Das wär sicher mal n Projekt wert.<br />
Sone Art c-Recoder.</p>
</blockquote>
<p>Ich wünsche dir viel Erfolg mit dem Vorhaben <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="😉"
    /> (es hat schon seine Gründe, warum es das noch nicht gibt)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1272315</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1272315</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 24 Apr 2007 11:14:10 GMT</pubDate></item><item><title><![CDATA[Reply to Ressource type not found! on Tue, 24 Apr 2007 19:07:34 GMT]]></title><description><![CDATA[<p>bin sicher nicht der Erste, dem sowas einfällt.<br />
Aber nichts ist unmöglich.<br />
Das ist gerade beim programmieren wirklich fakt.<br />
Irgendwie kricht man immer alles geprutscht.<br />
Und ich hoffe, ich kriege das mit den Ressourcen erstmal geprutscht.<br />
Bis dann ! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
-&gt;<br />
Edit:</p>
<p>Da bin ich wieder und muss sagen: Die .exe weisst tatsächlich KEINE ID 101 auf, kein BMP oder IDI_BMP.<br />
Wieso?<br />
Ich habe es so verwendet, wie immer, und alle Projekte, in denen ich Menüressourcen verwendet habe, funktionieren.<br />
Warum dies nicht?<br />
Dev-Cpp erstellt ja immer noch ne eigene private.rc und private.h.<br />
In diese private rc schreibt er das icon rein, das man bei &quot;Projekt Optionen&quot; zuweisen kann.<br />
Allerdnigs steht, falls ich eigene .rc's und .h's erstelle, dann auch immer</p>
<pre><code>#include &quot;meineeigene.rc&quot;
</code></pre>
<p>Und ich schätze, dadran liegt es.<br />
Denn das Programm kompiliert nicht, da mir gesagt wird:<br />
ress.h folder or file not found.<br />
Das ist die.h , welche von meiner eigenen .rc inkludiert wird , in welcher also das</p>
<pre><code>#define  IDM_BMP     101
</code></pre>
<p>steht.<br />
Kommentiere ich diese Zeile aus der private.rc raus, dann kompiliert das Programm , wird aber mit der Fehlermaldung 1813 ausgeführt.<br />
---<br />
Was muss ich tun? Mit den Menüs läuft das doch auch nicht so ab?<br />
Bin sehr verwundert!!!<br />
Danke.</p>
<h2>---</h2>
<p>edit:<br />
ICH muss mich entschuldigen!!!!!!<br />
#include&lt;meineeigene.rc&gt;<br />
muss<br />
#include &quot;meineeigene.rc&quot;<br />
heissen!!!!<br />
SORRY vielmals!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1272336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1272336</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Tue, 24 Apr 2007 19:07:34 GMT</pubDate></item></channel></rss>