<?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 HelloWindows]]></title><description><![CDATA[<p>Hi!<br />
Könnt ihr mir sagen wo mein Fehler ist?</p>
<pre><code class="language-cpp">[code]#include &lt;windows.h&gt;

HWND CreateMainWindow(HINSTANCE hInstance);

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);

HWND hWnd = 0;

int WINAPI WinMain(HINSTANCE hInstance,      
                   HINSTANCE hPrevInstance, 
                   LPSTR lpCmdLine,         
                   int nCmdShow)       
{   
    hWnd = CreateMainWindow(hInstance);

    if(0 == hWnd)
    {
        MessageBox(0,&quot;Fenster konnte nicht erzeugt werden&quot;,&quot;Fehler&quot;,MB_OK);
        return 0;
    }

    MSG msg;

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

HWND CreateMainWindow(HINSTANCE hInstance)
{
    WNDCLASSEX wndClass = 
    { 
        sizeof(WNDCLASSEX),                                 
        CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW,            
        MessageHandler,                                     
        0,                                                   
        0,                                                
        hInstance,                                         
        LoadIcon(NULL, IDI_WINLOGO),                        
        LoadCursor(NULL, IDC_ARROW),                        
        (HBRUSH)GetStockObject(WHITE_BRUSH),              
        NULL,                                               
        &quot;WindowClass&quot;,                                   
        LoadIcon(NULL, IDI_WINLOGO)                         
    };

    RegisterClassEx(&amp;wndClass);

    return CreateWindowEx(NULL,                   
                          &quot;WindowClass&quot;,          
                          &quot;Hello Windows&quot;,        
                          WS_OVERLAPPEDWINDOW |   
                          WS_VISIBLE,             
                          100, 100, 400, 300,     
                          NULL,                  
                          NULL,                
                          hInstance,             
                          NULL);                 
}

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch(msg)
    {
                    case WM_DESTROY:
                    PostQuitMessage(0);
                    return 0;
        break;       
    }

    return DefWindowProc(hwnd, msg, wParam, lParam);
}[/code]
</code></pre>
<p>Gruß OCC</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/99158/fehler-bei-hellowindows</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 05:14:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/99158.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Jan 2005 07:39:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler bei HelloWindows on Wed, 26 Jan 2005 07:39:37 GMT]]></title><description><![CDATA[<p>Hi!<br />
Könnt ihr mir sagen wo mein Fehler ist?</p>
<pre><code class="language-cpp">[code]#include &lt;windows.h&gt;

HWND CreateMainWindow(HINSTANCE hInstance);

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);

HWND hWnd = 0;

int WINAPI WinMain(HINSTANCE hInstance,      
                   HINSTANCE hPrevInstance, 
                   LPSTR lpCmdLine,         
                   int nCmdShow)       
{   
    hWnd = CreateMainWindow(hInstance);

    if(0 == hWnd)
    {
        MessageBox(0,&quot;Fenster konnte nicht erzeugt werden&quot;,&quot;Fehler&quot;,MB_OK);
        return 0;
    }

    MSG msg;

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

HWND CreateMainWindow(HINSTANCE hInstance)
{
    WNDCLASSEX wndClass = 
    { 
        sizeof(WNDCLASSEX),                                 
        CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW,            
        MessageHandler,                                     
        0,                                                   
        0,                                                
        hInstance,                                         
        LoadIcon(NULL, IDI_WINLOGO),                        
        LoadCursor(NULL, IDC_ARROW),                        
        (HBRUSH)GetStockObject(WHITE_BRUSH),              
        NULL,                                               
        &quot;WindowClass&quot;,                                   
        LoadIcon(NULL, IDI_WINLOGO)                         
    };

    RegisterClassEx(&amp;wndClass);

    return CreateWindowEx(NULL,                   
                          &quot;WindowClass&quot;,          
                          &quot;Hello Windows&quot;,        
                          WS_OVERLAPPEDWINDOW |   
                          WS_VISIBLE,             
                          100, 100, 400, 300,     
                          NULL,                  
                          NULL,                
                          hInstance,             
                          NULL);                 
}

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch(msg)
    {
                    case WM_DESTROY:
                    PostQuitMessage(0);
                    return 0;
        break;       
    }

    return DefWindowProc(hwnd, msg, wParam, lParam);
}[/code]
</code></pre>
<p>Gruß OCC</p>
]]></description><link>https://www.c-plusplus.net/forum/post/706223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/706223</guid><dc:creator><![CDATA[OCC]]></dc:creator><pubDate>Wed, 26 Jan 2005 07:39:37 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Wed, 26 Jan 2005 07:55:53 GMT]]></title><description><![CDATA[<p>OCC schrieb:</p>
<blockquote>
<p>Hi!<br />
Könnt ihr mir sagen wo mein Fehler ist?</p>
</blockquote>
<p>Kannst du sagen, wie sich der Fehler äußert? Einfach den Code hinzuklatschen, ist ziemlich unhöflich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/706231</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/706231</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 26 Jan 2005 07:55:53 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Wed, 26 Jan 2005 08:00:37 GMT]]></title><description><![CDATA[<p>Stimmt ist nicht gerade Höflich, man sollte schon Die Fehlermeldung bei schreiben.<br />
Aber als eingefleischter siehts man auch so, ändere folgendes:<br />
[cpp]<br />
return CreateWindowEx( <strong>0</strong>,<br />
&quot;WindowClass&quot;,<br />
&quot;Hello Windows&quot;,<br />
WS_OVERLAPPEDWINDOW |<br />
WS_VISIBLE,<br />
100, 100, 400, 300,<br />
NULL,<br />
NULL,<br />
hInstance,<br />
NULL);<br />
[/cpp]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/706237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/706237</guid><dc:creator><![CDATA[MichaM.]]></dc:creator><pubDate>Wed, 26 Jan 2005 08:00:37 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Wed, 26 Jan 2005 08:11:12 GMT]]></title><description><![CDATA[<p>sorry, das agt mein debugger:</p>
<pre><code>--------------------Konfiguration: helloworld - Win32 Debug--------------------
Linker-Vorgang läuft...
LIBCD.lib(crt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _main
Debug/helloworld.exe : fatal error LNK1120: 1 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.

helloworld.exe - 2 Fehler, 0 Warnung(en)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/706246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/706246</guid><dc:creator><![CDATA[OCC]]></dc:creator><pubDate>Wed, 26 Jan 2005 08:11:12 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Wed, 26 Jan 2005 08:16:23 GMT]]></title><description><![CDATA[<p>Der Code ist in Ordnung. Du musst ein Win32-Projekt erstellen, kein Konsolenprojekt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/706252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/706252</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 26 Jan 2005 08:16:23 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Wed, 26 Jan 2005 08:19:04 GMT]]></title><description><![CDATA[<p>verdammt, das war das falsche programm!<br />
beim hello windows steht:</p>
<pre><code>c:\programme\microsoft visual studio\myprojects\window\main.cpp(79) : fatal error C1010: Unerwartetes Dateiende waehrend der Suche nach der Direktive fuer die vorkompilierte Header-Datei
</code></pre>
<p>sorry!!! <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="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/706255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/706255</guid><dc:creator><![CDATA[OCC]]></dc:creator><pubDate>Wed, 26 Jan 2005 08:19:04 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Wed, 26 Jan 2005 08:21:59 GMT]]></title><description><![CDATA[<p>ich hab ne Win32Anwendung!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/706256</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/706256</guid><dc:creator><![CDATA[OCC]]></dc:creator><pubDate>Wed, 26 Jan 2005 08:21:59 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Wed, 26 Jan 2005 08:43:37 GMT]]></title><description><![CDATA[<p>OCC schrieb:</p>
<blockquote>
<p>C1010: Unerwartetes Dateiende waehrend der Suche nach der Direktive fuer die vorkompilierte Header-Datei</p>
</blockquote>
<p>Schalte die Verwendung vorkompilierter Header in den Eigenschaften der Quellcodedatei ab.</p>
<p>P.S.: Einzelne Ausrufezeichen tun's auch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/706267</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/706267</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 26 Jan 2005 08:43:37 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Wed, 26 Jan 2005 12:49:35 GMT]]></title><description><![CDATA[<p>OK, jetzt funzt!</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/706485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/706485</guid><dc:creator><![CDATA[OCC]]></dc:creator><pubDate>Wed, 26 Jan 2005 12:49:35 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Fri, 28 Jan 2005 14:16:18 GMT]]></title><description><![CDATA[<p>MichaM. schrieb:</p>
<blockquote>
<p>Stimmt ist nicht gerade <strong>h</strong>öflich, man sollte schon <strong>d</strong>ie Fehlermeldung bei schreiben.<br />
Aber als eingefleischter sieht man**'s** auch so, ändere folgendes:<br />
[cpp]<br />
return CreateWindowEx( <strong>0</strong>,<br />
&quot;WindowClass&quot;,<br />
&quot;Hello Windows&quot;,<br />
WS_OVERLAPPEDWINDOW |<br />
WS_VISIBLE,<br />
100, 100, 400, 300,<br />
NULL,<br />
NULL,<br />
hInstance,<br />
NULL);<br />
[/cpp]</p>
</blockquote>
<p>Also eingefleischter ist man sich doch aber der Gleichheit von NULL und 0 bewusst auch wenn es kein guter Stil ist, NULL zu verwenden, wo keine Pointervariable erwartet wird, oder sehe ich das falsch? (Konnte ich mir jetzt nicht verkneifen, ich bitte um Verzeihung <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="😃"
    /> )</p>
<pre><code class="language-cpp">#define FALSE   0
#define TRUE    1
#define NULL    0
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/708861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/708861</guid><dc:creator><![CDATA[masterofx32]]></dc:creator><pubDate>Fri, 28 Jan 2005 14:16:18 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Fri, 28 Jan 2005 15:33:42 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#define NULL ((void*)0)
</code></pre>
<p>Wenn ich sein Beispiel kopiere und compile, kommt:</p>
<p>mingw32 schrieb:</p>
<blockquote>
<p>main.cpp:64: warning: passing NULL used for non-pointer argument passing 1 of `<br />
HWND__* CreateWindowExA(long unsigned int, const CHAR*, const CHAR*, long<br />
unsigned int, int, int, int, int, HWND__<em>, HMENU__</em>, HINSTANCE__<em>, void</em>)'</p>
</blockquote>
<p>Da er keine Fehlermeldung bekannt gab, und der einzige Fehler dieser Schönheitsfehler war, aber sonst alles ok, blieb mir nur diese Aussage.</p>
<p>Als eingefleischter dem Quellcode vorgelegt wird ohne Fehlermeldung, liest man den Code und erkennt Fehler, darauf geht man dann ein, auch wenn es nur ein Schönheitsfehler ist, den ich weiß ja nicht wie sein Compiler damit umgeht.<br />
Fazit: Mein Posting war eine richtige Reaktion, auch wenn es nicht half, aber das lag ja nicht an mir.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/708933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/708933</guid><dc:creator><![CDATA[MichaM.]]></dc:creator><pubDate>Fri, 28 Jan 2005 15:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Fri, 28 Jan 2005 17:24:01 GMT]]></title><description><![CDATA[<p>Das ist ja seltsam - Warum wird an manchen Stellen in den Headerdateien NULL als 0 definiert und an anderen als echter Null-Pointer!? Ich dachte, es gäbe nur die 0-Variante. In dem Fall war mein Kommentar natürlich überflüssig und ich hab mich wohl vorschnell dazu hinreißen lassen, vor allem weil ich das Substantiv &quot;Eingefleischter&quot; recht amüsant fand <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/709053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709053</guid><dc:creator><![CDATA[masterofx32]]></dc:creator><pubDate>Fri, 28 Jan 2005 17:24:01 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Fri, 28 Jan 2005 22:21:07 GMT]]></title><description><![CDATA[<p>masterofx32 schrieb:</p>
<blockquote>
<p>Das ist ja seltsam - Warum wird an manchen Stellen in den Headerdateien NULL als 0 definiert und an anderen als echter Null-Pointer!? Ich dachte, es gäbe nur die 0-Variante.</p>
</blockquote>
<p>Da zwischen sitzt aber noch was:<br />
[cpp]<br />
#ifndef NULL /* wenn NULL noch nicht defined <em>/<br />
#ifdef __cplusplus /</em> <strong>wenn</strong> _cplusplus definiert wurde dann:<br />
#define NULL 0 /* bekommt NULL die 0 <em>/<br />
#else /</em> wenn aber nicht (sonst) <em>/<br />
#define NULL ((void</em>)0) /* definiere NULL als Zeiger */<br />
#endif<br />
#endif<br />
[/cpp]<br />
wenn ich bei meinem test #define _cplusplus angegeben hätte, gäbe es auch keine Fehlermeldung<br />
Nun das hat er in seinem Code ja auch nicht!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709266</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709266</guid><dc:creator><![CDATA[MichaM.]]></dc:creator><pubDate>Fri, 28 Jan 2005 22:21:07 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Sat, 29 Jan 2005 05:53:36 GMT]]></title><description><![CDATA[<p>masterofx32 schrieb:</p>
<blockquote>
<p>Das ist ja seltsam - Warum wird an manchen Stellen in den Headerdateien NULL als 0 definiert und an anderen als echter Null-Pointer!?</p>
</blockquote>
<p>Der Grund für die unterschiedlichen Definitionen ist, dass in C ein void* implizit in jeden anderen Zeigertyp konvertierbar ist - daher ist es z.B. auch nicht notwendig, den Rückgabewert von malloc zu casten.</p>
<p>In C++ geht das nicht, darum bringt das NULL-Pointer-Makro nichts mehr.</p>
<p>Man muss beim Überladen daran denken, dass NULL in C++ ein int ist. Und dann kann man - um Verwirrungen zu vermeiden - auch gleich 0 schreiben.</p>
<p>MichaM. schrieb:</p>
<blockquote>
<p>wenn ich bei meinem test #define _cplusplus angegeben hätte, gäbe es auch keine Fehlermeldung<br />
Nun das hat er in seinem Code ja auch nicht!</p>
</blockquote>
<p>Als &quot;Eingefleischter&quot; hättest du erkennen können, dass im Code des OP der Compiler selbst __cplusplus definiert <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/709358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709358</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sat, 29 Jan 2005 05:53:36 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Sat, 29 Jan 2005 19:16:58 GMT]]></title><description><![CDATA[<p>MFK schrieb:</p>
<blockquote>
<p>Als &quot;Eingefleischter&quot; hättest du erkennen können, dass im Code des OP der Compiler selbst __cplusplus definiert <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="😉"
    /></p>
</blockquote>
<p>Als jemand der Lesen kann, hättest du es Lesen können das ich eine fehlermeldung erhalte! Aha, hatte ich vieleicht kein C++ projekt, sondern nur C ??<br />
Woher soll ich wissen, wer was für einen Compiler hat und welche Projekteinstellungen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709851</guid><dc:creator><![CDATA[MichaM.]]></dc:creator><pubDate>Sat, 29 Jan 2005 19:16:58 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Sat, 29 Jan 2005 19:43:51 GMT]]></title><description><![CDATA[<p>MichaM. schrieb:</p>
<blockquote>
<p>Woher soll ich wissen, wer was für einen Compiler hat und welche Projekteinstellungen.</p>
</blockquote>
<p>Man kann den Compiler an seinen Fehlermeldungen erkennen. Und wenn man weiß, dass dieser Compiler nicht den neuesten C-Standard unterstützt, kann man folgern, dass dieser Code nur C++ sein kann. <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/709869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709869</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sat, 29 Jan 2005 19:43:51 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Sat, 29 Jan 2005 19:51:24 GMT]]></title><description><![CDATA[<p>MFK schrieb:</p>
<blockquote>
<p>Man kann den Compiler an seinen Fehlermeldungen erkennen.<br />
....</p>
</blockquote>
<p>Dein Lesen hat Winterpause <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="😃"
    /></p>
<p><strong>ER GAB KEINE FEHLERMELDUNG AN NUR SEINEN CODE, N U R - D E N - C O D E , K E I N E - F E H L E R M E L D U N G.</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/post/709875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709875</guid><dc:creator><![CDATA[MichaM.]]></dc:creator><pubDate>Sat, 29 Jan 2005 19:51:24 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Sat, 29 Jan 2005 20:06:14 GMT]]></title><description><![CDATA[<p>MichaM. schrieb:</p>
<blockquote>
<p><strong>ER GAB KEINE FEHLERMELDUNG AN NUR SEINEN CODE, N U R - D E N - C O D E , K E I N E - F E H L E R M E L D U N G.</strong></p>
</blockquote>
<p>Deine Shifttaste klemmt und deine Leertaste prellt.</p>
<p>Vor deiner Aussage</p>
<p>MichaM. schrieb:</p>
<blockquote>
<p>wenn ich bei meinem test #define _cplusplus angegeben hätte, gäbe es auch keine Fehlermeldung<br />
Nun das hat er in seinem Code ja auch nicht!</p>
</blockquote>
<p>- und nur auf diese bezog ich mich - gab es einige Fehlermeldungen.</p>
<p>Ich hätte vielleicht schreiben sollen: Als &quot;Eingefleischter&quot; hättest du <em>inzwischen</em> erkennen können, dass im Code des OP der Compiler selbst __cplusplus definiert. Sorry, mein Fehler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709891</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sat, 29 Jan 2005 20:06:14 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei HelloWindows on Sat, 29 Jan 2005 20:47:02 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/2803">@MFK</a><br />
Ich hätte beischreiben sollen, wenn ich ein C Projekt habe, aber wie du so schön sagst, als &quot;Eingefleischter&quot; sollte man das erkennen. Man konnte beim Threadstarter ja nicht erkennen was, wie und wie auch immer war.<br />
Wenn ich ein C Projekt habe und #define __cplusplus setzte wird es als C++ Projekt behandelt. Darum gings mir, da sein Code keinen Fehler hatte, ausser diesen, hätte es sein können das es ein C Projekt ist und daher hierbei ein Fehler Auftritt.<br />
Bei mir ist diese Fehlermeldung aufgetreten, da ich es als ein C projekt compilte, da brauchte ich nichts erkennen, den ich wußte es. Verstehst du wie ich das meine.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709917</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709917</guid><dc:creator><![CDATA[MichaM.]]></dc:creator><pubDate>Sat, 29 Jan 2005 20:47:02 GMT</pubDate></item></channel></rss>