<?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[C++ windo problem]]></title><description><![CDATA[<p>Hallo bin ein c++ anfänger und hab ein problem ^^<br />
und zwar hab ich ein code aus einen tutorial rauskopiert und wollte schaun ob und wie der geht ...<br />
mit dem programm soll anscheinend ein kleines windows-fenster geöffnet werden nur zeigt der compiler an manchen stellen fehler und ich weiß nicht warum<br />
(benutze dev c++)</p>
<p>(überall wo --&gt; is zeigt compiler fehler )</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt; 
LONG FAR PASCAL WndProc_pd (HWND , UINT , UINT , LONG) ;
int PASCAL WinMain (HANDLE hInstance_pd , 
HANDLE hPrevInstance_pd , 
LPSTR lpszCmdParam , 
int nCmdShow) 
{
MSG msg_pd ;
HWND hwnd_pd ; 
WNDCLASS wndclass_pd ;
if (!hPrevInstance_pd)
{ 
wndclass_pd.style = CS_HREDRAW | CS_VREDRAW ;
wndclass_pd.lpfnWndProc = WndProc_pd ; 
wndclass_pd.cbClsExtra = 0 ;
wndclass_pd.cbWndExtra = 0 ;
/*---&gt;*/    wndclass_pd.hInstance = hInstance_pd ;
wndclass_pd.hIcon = LoadIcon (NULL , IDI_APPLICATION) ;

wndclass_pd.hCursor = LoadCursor (NULL , IDC_ARROW) ;

/*---&gt;*/   wndclass_pd.hbrBackground = GetStockObject (LTGRAY_BRUSH) ;

wndclass_pd.lpszMenuName = NULL ;
wndclass_pd.lpszClassName = &quot;WndClassName_pd&quot; ; 
RegisterClass (&amp;wndclass_pd) ; 
}
/*---&gt;*/  hwnd_pd = CreateWindow (&quot;WndClassName_pd&quot; , 
&quot;MiniWin_pd&quot; , 
WS_OVERLAPPEDWINDOW , 
CW_USEDEFAULT , 
CW_USEDEFAULT ,
CW_USEDEFAULT , 
CW_USEDEFAULT , 
NULL , 
NULL , hInstance_pd , 
NULL) ; 

ShowWindow (hwnd_pd , nCmdShow) ; while (GetMessage (&amp;msg_pd , NULL , 0 , 0)) 
{
DispatchMessage (&amp;msg_pd) ; }
return msg_pd.wParam ;
}
LONG FAR PASCAL WndProc_pd (HWND hwnd , UINT message ,
UINT wParam , LONG lParam)
{
switch (message)
{
case WM_DESTROY: PostQuitMessage (0) ; return 0 ;
}
return DefWindowProc (hwnd , message , wParam , lParam) ;
}
</code></pre>
<p>danke für hilfe<br />
mgf bas</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/194833/c-windo-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 03:28:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/194833.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Oct 2007 11:41:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ windo problem on Thu, 11 Oct 2007 11:41:55 GMT]]></title><description><![CDATA[<p>Hallo bin ein c++ anfänger und hab ein problem ^^<br />
und zwar hab ich ein code aus einen tutorial rauskopiert und wollte schaun ob und wie der geht ...<br />
mit dem programm soll anscheinend ein kleines windows-fenster geöffnet werden nur zeigt der compiler an manchen stellen fehler und ich weiß nicht warum<br />
(benutze dev c++)</p>
<p>(überall wo --&gt; is zeigt compiler fehler )</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt; 
LONG FAR PASCAL WndProc_pd (HWND , UINT , UINT , LONG) ;
int PASCAL WinMain (HANDLE hInstance_pd , 
HANDLE hPrevInstance_pd , 
LPSTR lpszCmdParam , 
int nCmdShow) 
{
MSG msg_pd ;
HWND hwnd_pd ; 
WNDCLASS wndclass_pd ;
if (!hPrevInstance_pd)
{ 
wndclass_pd.style = CS_HREDRAW | CS_VREDRAW ;
wndclass_pd.lpfnWndProc = WndProc_pd ; 
wndclass_pd.cbClsExtra = 0 ;
wndclass_pd.cbWndExtra = 0 ;
/*---&gt;*/    wndclass_pd.hInstance = hInstance_pd ;
wndclass_pd.hIcon = LoadIcon (NULL , IDI_APPLICATION) ;

wndclass_pd.hCursor = LoadCursor (NULL , IDC_ARROW) ;

/*---&gt;*/   wndclass_pd.hbrBackground = GetStockObject (LTGRAY_BRUSH) ;

wndclass_pd.lpszMenuName = NULL ;
wndclass_pd.lpszClassName = &quot;WndClassName_pd&quot; ; 
RegisterClass (&amp;wndclass_pd) ; 
}
/*---&gt;*/  hwnd_pd = CreateWindow (&quot;WndClassName_pd&quot; , 
&quot;MiniWin_pd&quot; , 
WS_OVERLAPPEDWINDOW , 
CW_USEDEFAULT , 
CW_USEDEFAULT ,
CW_USEDEFAULT , 
CW_USEDEFAULT , 
NULL , 
NULL , hInstance_pd , 
NULL) ; 

ShowWindow (hwnd_pd , nCmdShow) ; while (GetMessage (&amp;msg_pd , NULL , 0 , 0)) 
{
DispatchMessage (&amp;msg_pd) ; }
return msg_pd.wParam ;
}
LONG FAR PASCAL WndProc_pd (HWND hwnd , UINT message ,
UINT wParam , LONG lParam)
{
switch (message)
{
case WM_DESTROY: PostQuitMessage (0) ; return 0 ;
}
return DefWindowProc (hwnd , message , wParam , lParam) ;
}
</code></pre>
<p>danke für hilfe<br />
mgf bas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382772</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382772</guid><dc:creator><![CDATA[bodyandsoul]]></dc:creator><pubDate>Thu, 11 Oct 2007 11:41:55 GMT</pubDate></item><item><title><![CDATA[Reply to C++ windo problem on Thu, 11 Oct 2007 11:56:51 GMT]]></title><description><![CDATA[<p>am besten du rückst den Code ersteinmal vernünftig ein. Dann kann man dir besser helfen. Und vllt. findest du auch schon selber ein paar Fehler. Außerdem wären die Fehler, die der Compiler auswirft, nicht unerheblich um Hilfe zu geben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382784</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382784</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Thu, 11 Oct 2007 11:56:51 GMT</pubDate></item><item><title><![CDATA[Reply to C++ windo problem on Thu, 11 Oct 2007 13:06:08 GMT]]></title><description><![CDATA[<p>Änder mal in der WinMain-Zeile &quot;HANDLE&quot; in &quot;HINSTANCE&quot; um</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382837</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382837</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Thu, 11 Oct 2007 13:06:08 GMT</pubDate></item><item><title><![CDATA[Reply to C++ windo problem on Thu, 11 Oct 2007 13:35:54 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382861</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 11 Oct 2007 13:35:54 GMT</pubDate></item></channel></rss>