<?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[#include &amp;quot;resource.h&amp;quot; ????]]></title><description><![CDATA[<p>Hi leute , ich bin neu hier und wolte fragen was hat dieses zu bedeuten?</p>
<p>#include &quot;resource.h&quot; ????</p>
<p>woher bekomm ich diese daitei oder wie mache ich sie??</p>
<p>ich arbeite mit dev_cpp V: 4.9.9.9 gerade mit ein tutorial zusammen</p>
<p>auch von dieser seite: wie man bilder im fenster macht</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/185869/include-quot-resource-h-quot</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 11:01:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/185869.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Jul 2007 10:52:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Mon, 02 Jul 2007 10:52:36 GMT]]></title><description><![CDATA[<p>Hi leute , ich bin neu hier und wolte fragen was hat dieses zu bedeuten?</p>
<p>#include &quot;resource.h&quot; ????</p>
<p>woher bekomm ich diese daitei oder wie mache ich sie??</p>
<p>ich arbeite mit dev_cpp V: 4.9.9.9 gerade mit ein tutorial zusammen</p>
<p>auch von dieser seite: wie man bilder im fenster macht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316747</guid><dc:creator><![CDATA[pokêmon]]></dc:creator><pubDate>Mon, 02 Jul 2007 10:52:36 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Mon, 02 Jul 2007 10:57:12 GMT]]></title><description><![CDATA[<p>Die Datei mußt du dir notfalls selber zusammenbauen (viele IDEs bringen einen Ressourcen-Editor mit, in dem du z.B. Dialogfenster zusammenbauen kannst - die legen dann auch die darauf abgestimmte &quot;ressource.h&quot; an).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316750</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 02 Jul 2007 10:57:12 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Mon, 02 Jul 2007 10:59:53 GMT]]></title><description><![CDATA[<p>kann ich die datei auch dowloaden , weil ich ein c++ anfänger bin und nochnicht genug kentnisse hab <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
oder gibt es irgentwo ein tutorial wie man sowas macht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316755</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316755</guid><dc:creator><![CDATA[pokêmon]]></dc:creator><pubDate>Mon, 02 Jul 2007 10:59:53 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Mon, 02 Jul 2007 11:09:18 GMT]]></title><description><![CDATA[<p>Nein, kannst du nicht, weil die bei jedem Projekt anders aussehen wird. In die Datei packt der Ressourcen-Editor die IDs der Dialoge, Dialogelemente, Menü-Einträge etc., die du grafisch zusammengebastelt hast.</p>
<p>(wenn du wissen willst, wie das mit deinem System geht, solltest du warten, bis ein Mod diesen Thread ins richtige Board verfrachtet hat)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316763</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316763</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 02 Jul 2007 11:09:18 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Mon, 02 Jul 2007 11:18:06 GMT]]></title><description><![CDATA[<p>nun ja ich hoffe ihr könnt mir doch helfen , weil ich diesen code kopiert habe aber ich bekomm das noch nicht hin</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-159048-and-postdays-is-0-and-postorder-is-asc-and-start-is-10.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-159048-and-postdays-is-0-and-postorder-is-asc-and-start-is-10.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316770</guid><dc:creator><![CDATA[pokêmon]]></dc:creator><pubDate>Mon, 02 Jul 2007 11:18:06 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Mon, 02 Jul 2007 11:20:23 GMT]]></title><description><![CDATA[<p>also der komplette halt:</p>
<p>#include &lt;windows.h&gt;<br />
#include &quot;resource.h&quot;</p>
<p>const char g_szClassName[] = &quot;myWindowClass&quot;;</p>
<p>HBITMAP g_hbmBall = NULL;</p>
<p>LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)<br />
{<br />
switch(msg)<br />
{<br />
case WM_CREATE:<br />
g_hbmBall = LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BALL));<br />
if(g_hbmBall == NULL)<br />
MessageBox(hwnd, &quot;Could not load IDB_BALL!&quot;, &quot;Error&quot;, MB_OK | MB_ICONEXCLAMATION);<br />
break;<br />
case WM_CLOSE:<br />
DestroyWindow(hwnd);<br />
break;<br />
case WM_PAINT:<br />
{<br />
// Just a note, never use a MessageBox from inside WM_PAINT<br />
// The box will cause more WM_PAINT messages and you'll probably end up<br />
// stuck in a loop</p>
<p>BITMAP bm;<br />
PAINTSTRUCT ps;</p>
<p>HDC hdc = BeginPaint(hwnd, &amp;ps);</p>
<p>HDC hdcMem = CreateCompatibleDC(hdc);<br />
HBITMAP hbmOld = SelectObject(hdcMem, g_hbmBall);</p>
<p>GetObject(g_hbmBall, sizeof(bm), &amp;bm);</p>
<p>BitBlt(hdc, 0, 0, bm.bmWidth, bm.bmHeight, hdcMem, 0, 0, SRCCOPY);</p>
<p>SelectObject(hdcMem, hbmOld);<br />
DeleteDC(hdcMem);</p>
<p>EndPaint(hwnd, &amp;ps);<br />
}<br />
break;<br />
case WM_DESTROY:<br />
DeleteObject(g_hbmBall);<br />
PostQuitMessage(0);<br />
break;<br />
default:<br />
return DefWindowProc(hwnd, msg, wParam, lParam);<br />
}<br />
return 0;<br />
}</p>
<p>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,<br />
LPSTR lpCmdLine, int nCmdShow)<br />
{</p>
<p>ShowWindow(hwnd, nCmdShow);<br />
UpdateWindow(hwnd);</p>
<p>while(GetMessage(&amp;Msg, NULL, 0, 0) &gt; 0)<br />
{<br />
TranslateMessage(&amp;Msg);<br />
DispatchMessage(&amp;Msg);<br />
}<br />
return Msg.wParam;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316774</guid><dc:creator><![CDATA[pokêmon]]></dc:creator><pubDate>Mon, 02 Jul 2007 11:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Wed, 04 Jul 2007 21:25:05 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Bei deinem Programm fehlen noch ganz wichtige Teile.<br />
Du könntest das hier benutzen, das Funktioniert ohne Ressourcen:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

char* pcBmp =  &quot;C:\\Bilder\\xyz.bmp&quot;;
HINSTANCE hInst;

LRESULT CALLBACK WindProcedure(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);

INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
                   LPSTR lpCmdLine, int nCmdShow)
{
    WNDCLASSEX  WndCls;
    static char szAppName[] = &quot;Proggingmanias Simple Bitmap Window&quot;;
    MSG         Msg;

	hInst       = hInstance;
    WndCls.cbSize        = sizeof(WndCls);
    WndCls.style         = CS_OWNDC | CS_VREDRAW | CS_HREDRAW;
    WndCls.lpfnWndProc   = WindProcedure;
    WndCls.cbClsExtra    = 0;
    WndCls.cbWndExtra    = 0;
    WndCls.hInstance     = hInst;
    WndCls.hIcon         = LoadIcon(NULL, IDI_APPLICATION);
    WndCls.hCursor       = LoadCursor(NULL, IDC_ARROW);
    WndCls.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
    WndCls.lpszMenuName  = NULL;
    WndCls.lpszClassName = szAppName;
    WndCls.hIconSm       = LoadIcon(hInstance, IDI_APPLICATION);
    RegisterClassEx(&amp;WndCls);

    CreateWindowEx(WS_EX_OVERLAPPEDWINDOW,
                          szAppName,
                          &quot;Proggingmanias Simple Bitmap Window&quot;,
                          WS_OVERLAPPEDWINDOW | WS_VISIBLE,
                          CW_USEDEFAULT,
                          CW_USEDEFAULT,
                          CW_USEDEFAULT,
                          CW_USEDEFAULT,
                          NULL,
                          NULL,
                          hInstance,
                          NULL);

    while( GetMessage(&amp;Msg, NULL, 0, 0) )
    {
        TranslateMessage(&amp;Msg);
        DispatchMessage( &amp;Msg);
    }

    return  (Msg.wParam);
}

LRESULT CALLBACK WindProcedure(HWND hWnd, UINT Msg,
			   WPARAM wParam, LPARAM lParam)
{
    HDC hDC, MemDC;
    PAINTSTRUCT Ps;
    HBITMAP hbmp;
	char buf[256];

	RECT r;
	GetWindowRect( hWnd, &amp;r );

    switch(Msg)
    {
		case WM_DESTROY:
			PostQuitMessage(WM_QUIT);
			break;
		case WM_PAINT:
			hDC = BeginPaint(hWnd, &amp;Ps);

			hbmp = (HBITMAP)LoadImage(NULL, pcBmp, IMAGE_BITMAP, 0, 0,
			 LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE);

			if ( !hbmp )
			{
				sprintf( buf, &quot;%s not found.&quot;, pcBmp ); 
				MessageBox( hWnd, buf, &quot;Picture not found&quot;, MB_OK );
				ExitProcess(1);
			}

			// Create a memory device compatible with the above DC variable
			MemDC = CreateCompatibleDC(hDC);
				 // Select the new bitmap
				 SelectObject(MemDC, hbmp);

			// Copy the bits from the memory DC into the current dc
			BitBlt(hDC, 0, 0, r.right, r.bottom, MemDC, 0, 0, SRCCOPY);

			// Restore the old bitmap
			DeleteDC(MemDC);
			DeleteObject(hbmp);
			EndPaint(hWnd, &amp;Ps);
		break;

		default:
	    return DefWindowProc(hWnd, Msg, wParam, lParam);
    }
    return 0;
}
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1317686</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1317686</guid><dc:creator><![CDATA[proggingmania]]></dc:creator><pubDate>Wed, 04 Jul 2007 21:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Wed, 04 Jul 2007 20:46:48 GMT]]></title><description><![CDATA[<p>error in:</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> hbmp = LoadBitmap(hInst, IDB_MEINBILD );</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1318549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1318549</guid><dc:creator><![CDATA[pokêmon]]></dc:creator><pubDate>Wed, 04 Jul 2007 20:46:48 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Wed, 04 Jul 2007 20:51:45 GMT]]></title><description><![CDATA[<p>FETTEN *THUMPS UP* jetzt funtz der code sogar sofort: - code kopieren und run!!!</p>
<p>///////CODE NOCHMAL ABER OHNE FEHLER !!!!!/////////</p>
<p>#include &lt;windows.h&gt;</p>
<p>char* pcBmp = &quot;C:\\Bilder\\xyz.bmp&quot;;<br />
HINSTANCE hInst;</p>
<p>LRESULT CALLBACK WindProcedure(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);</p>
<p>INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,<br />
LPSTR lpCmdLine, int nCmdShow)<br />
{<br />
WNDCLASSEX WndCls;<br />
static char szAppName[] = &quot;Proggingmanias Simple Bitmap Window&quot;;<br />
MSG Msg;</p>
<p>hInst = hInstance;<br />
WndCls.cbSize = sizeof(WndCls);<br />
WndCls.style = CS_OWNDC | CS_VREDRAW | CS_HREDRAW;<br />
WndCls.lpfnWndProc = WindProcedure;<br />
WndCls.cbClsExtra = 0;<br />
WndCls.cbWndExtra = 0;<br />
WndCls.hInstance = hInst;<br />
WndCls.hIcon = LoadIcon(NULL, IDI_APPLICATION);<br />
WndCls.hCursor = LoadCursor(NULL, IDC_ARROW);<br />
WndCls.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);<br />
WndCls.lpszMenuName = NULL;<br />
WndCls.lpszClassName = szAppName;<br />
WndCls.hIconSm = LoadIcon(hInstance, IDI_APPLICATION);<br />
RegisterClassEx(&amp;WndCls);</p>
<p>CreateWindowEx(WS_EX_OVERLAPPEDWINDOW,<br />
szAppName,<br />
&quot;Proggingmanias Simple Bitmap Window&quot;,<br />
WS_OVERLAPPEDWINDOW | WS_VISIBLE,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
NULL,<br />
NULL,<br />
hInstance,<br />
NULL);</p>
<p>while( GetMessage(&amp;Msg, NULL, 0, 0) )<br />
{<br />
TranslateMessage(&amp;Msg);<br />
DispatchMessage( &amp;Msg);<br />
}</p>
<p>return (Msg.wParam);<br />
}</p>
<p>LRESULT CALLBACK WindProcedure(HWND hWnd, UINT Msg,<br />
WPARAM wParam, LPARAM lParam)<br />
{<br />
HDC hDC, MemDC;<br />
PAINTSTRUCT Ps;<br />
HBITMAP hbmp;<br />
char buf[256];</p>
<p>RECT r;<br />
GetWindowRect( hWnd, &amp;r );</p>
<p>switch(Msg)<br />
{<br />
case WM_DESTROY:<br />
PostQuitMessage(WM_QUIT);<br />
break;<br />
case WM_PAINT:<br />
hDC = BeginPaint(hWnd, &amp;Ps);</p>
<p>hbmp = (HBITMAP)LoadImage(NULL, pcBmp, IMAGE_BITMAP, 0, 0,<br />
LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE);</p>
<p>if ( !hbmp )<br />
{</p>
<p>MessageBox( hWnd, buf, &quot;Picture not found&quot;, MB_OK );<br />
ExitProcess(1);<br />
}</p>
<p>// Create a memory device compatible with the above DC variable<br />
MemDC = CreateCompatibleDC(hDC);<br />
// Select the new bitmap<br />
SelectObject(MemDC, hbmp);</p>
<p>// Copy the bits from the memory DC into the current dc<br />
BitBlt(hDC, 0, 0, r.right, r.bottom, MemDC, 0, 0, SRCCOPY);</p>
<p>// Restore the old bitmap<br />
DeleteDC(MemDC);<br />
DeleteObject(hbmp);<br />
EndPaint(hWnd, &amp;Ps);<br />
break;</p>
<p>default:<br />
return DefWindowProc(hWnd, Msg, wParam, lParam);<br />
}<br />
return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1318551</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1318551</guid><dc:creator><![CDATA[pokêmon]]></dc:creator><pubDate>Wed, 04 Jul 2007 20:51:45 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Wed, 04 Jul 2007 21:27:44 GMT]]></title><description><![CDATA[<p>pokêmon schrieb:</p>
<blockquote>
<p>error in:</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> hbmp = LoadBitmap(hInst, IDB_MEINBILD );</p>
</blockquote>
<p>Ja, die Zeile ist zuviel <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="😃"
    /> , die muss raus.<br />
Habs mal geändert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1318560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1318560</guid><dc:creator><![CDATA[proggingmania]]></dc:creator><pubDate>Wed, 04 Jul 2007 21:27:44 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;quot;resource.h&amp;quot; ???? on Thu, 05 Jul 2007 07:27:51 GMT]]></title><description><![CDATA[<p>^^Hehe</p>
<p>... gibt es irgentwo so codes mit fehler woran man lehrnen kann ??</p>
<p>so wie den den du mir geschickt hast : also so übungen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1318654</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1318654</guid><dc:creator><![CDATA[pokêmon]]></dc:creator><pubDate>Thu, 05 Jul 2007 07:27:51 GMT</pubDate></item></channel></rss>