<?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[WndProc Problem]]></title><description><![CDATA[<p>hallo,</p>
<p>ich habe von einer tutorialseite, die hier verlinkt wurde den Code:</p>
<pre><code>#define STRICT

#include &lt;windows.h&gt;

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);

const char szAppName[]    = &quot;Textausgabe im Anwendungsbereich&quot;;

int WINAPI WinMain(  HINSTANCE hInstance, HINSTANCE hPrevInstance,
                     PSTR szCmdLine, int iCmdShow)
{
   MSG        msg;
   HWND       hWnd;
   WNDCLASS   wc;

   wc.style               = CS_HREDRAW | CS_VREDRAW;
   wc.lpfnWndProc         = WndProc;
   wc.cbClsExtra          = 0;
   wc.cbWndExtra          = 0;
   wc.hInstance           = hInstance;
   wc.hCursor             = LoadCursor(NULL, IDC_ARROW);
   wc.hIcon               = LoadIcon(NULL, IDI_APPLICATION);
   wc.hbrBackground       = (HBRUSH) GetStockObject(WHITE_BRUSH);
   wc.lpszClassName       = szAppName;
   wc.lpszMenuName        = NULL;

   RegisterClass(&amp;wc);

   hWnd = CreateWindow(   szAppName,
                          szAppName,
                          WS_OVERLAPPEDWINDOW,
                          CW_USEDEFAULT,
                          CW_USEDEFAULT,
                          CW_USEDEFAULT,
                          CW_USEDEFAULT,
                          NULL,
                          NULL,
                          hInstance,
                          NULL);

   ShowWindow(hWnd, iCmdShow);
   UpdateWindow(hWnd);

   while (GetMessage(&amp;msg, NULL, 0, 0))
   {
      TranslateMessage(&amp;msg);
      DispatchMessage(&amp;msg);
   }
   return msg.wParam;
}
</code></pre>
<p>den compiliere ich mit bcc32 -tW skelett.cpp</p>
<p>und bekomme diese fehler meldung:</p>
<pre><code>Error Unresolved external '__stdcall WndProc(HWND__ , unsigned int, unsigned i
nt, long)' referenced from CDOKUMENTE UND EINSTELLUNGENMEIN USER NAMEWINCPPSKELE
TT.OBJ
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/193498/wndproc-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 14:22:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/193498.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Sep 2007 15:56:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WndProc Problem on Wed, 26 Sep 2007 15:56:14 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>ich habe von einer tutorialseite, die hier verlinkt wurde den Code:</p>
<pre><code>#define STRICT

#include &lt;windows.h&gt;

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);

const char szAppName[]    = &quot;Textausgabe im Anwendungsbereich&quot;;

int WINAPI WinMain(  HINSTANCE hInstance, HINSTANCE hPrevInstance,
                     PSTR szCmdLine, int iCmdShow)
{
   MSG        msg;
   HWND       hWnd;
   WNDCLASS   wc;

   wc.style               = CS_HREDRAW | CS_VREDRAW;
   wc.lpfnWndProc         = WndProc;
   wc.cbClsExtra          = 0;
   wc.cbWndExtra          = 0;
   wc.hInstance           = hInstance;
   wc.hCursor             = LoadCursor(NULL, IDC_ARROW);
   wc.hIcon               = LoadIcon(NULL, IDI_APPLICATION);
   wc.hbrBackground       = (HBRUSH) GetStockObject(WHITE_BRUSH);
   wc.lpszClassName       = szAppName;
   wc.lpszMenuName        = NULL;

   RegisterClass(&amp;wc);

   hWnd = CreateWindow(   szAppName,
                          szAppName,
                          WS_OVERLAPPEDWINDOW,
                          CW_USEDEFAULT,
                          CW_USEDEFAULT,
                          CW_USEDEFAULT,
                          CW_USEDEFAULT,
                          NULL,
                          NULL,
                          hInstance,
                          NULL);

   ShowWindow(hWnd, iCmdShow);
   UpdateWindow(hWnd);

   while (GetMessage(&amp;msg, NULL, 0, 0))
   {
      TranslateMessage(&amp;msg);
      DispatchMessage(&amp;msg);
   }
   return msg.wParam;
}
</code></pre>
<p>den compiliere ich mit bcc32 -tW skelett.cpp</p>
<p>und bekomme diese fehler meldung:</p>
<pre><code>Error Unresolved external '__stdcall WndProc(HWND__ , unsigned int, unsigned i
nt, long)' referenced from CDOKUMENTE UND EINSTELLUNGENMEIN USER NAMEWINCPPSKELE
TT.OBJ
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1373229</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373229</guid><dc:creator><![CDATA[LittleGamer3]]></dc:creator><pubDate>Wed, 26 Sep 2007 15:56:14 GMT</pubDate></item><item><title><![CDATA[Reply to WndProc Problem on Wed, 26 Sep 2007 16:03:36 GMT]]></title><description><![CDATA[<p>Ehm ja es bringt dir wenig eine FUnktion zu deklarieren aber nicht zu definieren.<br />
D.h. du musst auch schreiben was in der WndProc abgehen soll ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373235</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373235</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 26 Sep 2007 16:03:36 GMT</pubDate></item><item><title><![CDATA[Reply to WndProc Problem on Wed, 26 Sep 2007 16:13:47 GMT]]></title><description><![CDATA[<p>(D)Evil schrieb:</p>
<blockquote>
<p>Ehm ja es bringt dir wenig eine FUnktion zu deklarieren aber nicht zu definieren.<br />
D.h. du musst auch schreiben was in der WndProc abgehen soll ...</p>
</blockquote>
<p>kannste vielleicht den richtigen Quellcode mal reinstellen?<br />
danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373248</guid><dc:creator><![CDATA[LittleGamer3]]></dc:creator><pubDate>Wed, 26 Sep 2007 16:13:47 GMT</pubDate></item><item><title><![CDATA[Reply to WndProc Problem on Wed, 26 Sep 2007 16:23:07 GMT]]></title><description><![CDATA[<p>Ist es dieses Tutorial?<br />
<a href="http://www.win-api.de/tutorials.php?tutid=3" rel="nofollow">http://www.win-api.de/tutorials.php?tutid=3</a></p>
<pre><code class="language-cpp">LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {

	switch (message) {   
	case WM_DESTROY:
        	PostQuitMessage(0);
        	return 0;

	}

	return DefWindowProc(hWnd, message, wParam, lParam);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1373258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373258</guid><dc:creator><![CDATA[Bommel]]></dc:creator><pubDate>Wed, 26 Sep 2007 16:23:07 GMT</pubDate></item><item><title><![CDATA[Reply to WndProc Problem on Wed, 26 Sep 2007 16:29:39 GMT]]></title><description><![CDATA[<p>soll ich es obendrüber oder drunter schreiben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373265</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373265</guid><dc:creator><![CDATA[LittleGamer3]]></dc:creator><pubDate>Wed, 26 Sep 2007 16:29:39 GMT</pubDate></item><item><title><![CDATA[Reply to WndProc Problem on Wed, 26 Sep 2007 17:34:29 GMT]]></title><description><![CDATA[<p>Das ist egal, da du die Funktion bereits oben deklariert hast, kannst du sie ruhig auch unten definieren ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373313</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 26 Sep 2007 17:34:29 GMT</pubDate></item></channel></rss>