<?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[Frage zu Tutorial Beispiel]]></title><description><![CDATA[<p>Hallo,<br />
ich gucke mir gerade folgendes Tutorial an:</p>
<p><a href="http://pronix.linuxdelta.de/C/win32/win32_1.shtml#2" rel="nofollow">http://pronix.linuxdelta.de/C/win32/win32_1.shtml#2</a></p>
<p>Da steht das ich den Source Code für das Fenster Compilieren soll aber wo muss da der Source Code rein o_O</p>
<p>Also ich hab mein Borland Builder 6 gestartet, dann hab auf Datei geklickt und dann auf Anwendung, dann kommt da ein Fenster das heisst Form das hat so einen grauen hintergrund mit ganz viele Punkten.</p>
<p>Dann hab ich da doppelklick drauf gemacht und dort stand dann folgendes.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Label1Click(TObject *Sender)
{

}
//---------------------------------------------------------------------------
void __fastcall TForm1::Edit1Change(TObject *Sender)
{

}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{

}
//---------------------------------------------------------------------------
</code></pre>
<p>Und hier ist der Source Code der laut dem Tutorial das leere Fenster erstellen soll.</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

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

LPCSTR lpszAppName = &quot;AppName&quot;;
LPCSTR lpszTitle   = &quot;Meine erste Applikation&quot;;

int APIENTRY WinMain(HINSTANCE hInstance,
           HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{

   HWND       hWnd;
   MSG        msg;
   WNDCLASSEX   wc;

   wc.cbSize        =  sizeof(WNDCLASSEX);
   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 =  lpszAppName;
   wc.lpszMenuName  =  lpszAppName;
   wc.hIconSm       =  LoadIcon(NULL, IDI_APPLICATION);

   if( RegisterClassEx(&amp;wc) == 0)
      return 0;

   hWnd = CreateWindowEx(NULL,
                         lpszAppName,
                         lpszTitle,
                         WS_OVERLAPPEDWINDOW,
                         0,
                         0,
                         CW_USEDEFAULT,
                         CW_USEDEFAULT,
                         NULL,
                         NULL,
                         hInstance,
                         NULL);

   if( hWnd == NULL)
      return 0;

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

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

LRESULT CALLBACK WndProc(HWND hWnd, UINT umsg, WPARAM wParam, LPARAM lParam)
{
   switch (umsg)
   {
   case WM_DESTROY:
      {
         PostQuitMessage(0);
         return 0;
      }
   }
   return DefWindowProc(hWnd, umsg, wParam, lParam);
}
</code></pre>
<p>Aber wo muss der Source Code für das Fenster jetzt hin <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="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/195290/frage-zu-tutorial-beispiel</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 00:58:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/195290.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Oct 2007 10:12:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu Tutorial Beispiel on Tue, 16 Oct 2007 10:12:02 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich gucke mir gerade folgendes Tutorial an:</p>
<p><a href="http://pronix.linuxdelta.de/C/win32/win32_1.shtml#2" rel="nofollow">http://pronix.linuxdelta.de/C/win32/win32_1.shtml#2</a></p>
<p>Da steht das ich den Source Code für das Fenster Compilieren soll aber wo muss da der Source Code rein o_O</p>
<p>Also ich hab mein Borland Builder 6 gestartet, dann hab auf Datei geklickt und dann auf Anwendung, dann kommt da ein Fenster das heisst Form das hat so einen grauen hintergrund mit ganz viele Punkten.</p>
<p>Dann hab ich da doppelklick drauf gemacht und dort stand dann folgendes.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Label1Click(TObject *Sender)
{

}
//---------------------------------------------------------------------------
void __fastcall TForm1::Edit1Change(TObject *Sender)
{

}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{

}
//---------------------------------------------------------------------------
</code></pre>
<p>Und hier ist der Source Code der laut dem Tutorial das leere Fenster erstellen soll.</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

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

LPCSTR lpszAppName = &quot;AppName&quot;;
LPCSTR lpszTitle   = &quot;Meine erste Applikation&quot;;

int APIENTRY WinMain(HINSTANCE hInstance,
           HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{

   HWND       hWnd;
   MSG        msg;
   WNDCLASSEX   wc;

   wc.cbSize        =  sizeof(WNDCLASSEX);
   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 =  lpszAppName;
   wc.lpszMenuName  =  lpszAppName;
   wc.hIconSm       =  LoadIcon(NULL, IDI_APPLICATION);

   if( RegisterClassEx(&amp;wc) == 0)
      return 0;

   hWnd = CreateWindowEx(NULL,
                         lpszAppName,
                         lpszTitle,
                         WS_OVERLAPPEDWINDOW,
                         0,
                         0,
                         CW_USEDEFAULT,
                         CW_USEDEFAULT,
                         NULL,
                         NULL,
                         hInstance,
                         NULL);

   if( hWnd == NULL)
      return 0;

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

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

LRESULT CALLBACK WndProc(HWND hWnd, UINT umsg, WPARAM wParam, LPARAM lParam)
{
   switch (umsg)
   {
   case WM_DESTROY:
      {
         PostQuitMessage(0);
         return 0;
      }
   }
   return DefWindowProc(hWnd, umsg, wParam, lParam);
}
</code></pre>
<p>Aber wo muss der Source Code für das Fenster jetzt hin <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="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386213</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386213</guid><dc:creator><![CDATA[Bassmaster]]></dc:creator><pubDate>Tue, 16 Oct 2007 10:12:02 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Tutorial Beispiel on Tue, 16 Oct 2007 10:36:58 GMT]]></title><description><![CDATA[<p>Entscheide dich erst mal, ob du deine Anwendung mithilfe der VCL (also dem UI-Designer des C++Builder) oder direkt über das Windows-API machen willst. Der Tutorial-Code jedenfalls verwendet das Windows-API direkt und hat in einem VCL-Programm eigentlich nichts zu suchen.</p>
<p>Ein Programm ohne VCL erstellst du mit dem C++Builder über &quot;Datei|Neu|Weitere...|Konsolen-Experte&quot;. Im daraufhin erscheinenden Dialog entfernst du das Häkchen bei &quot;Konsolen-Anwendung&quot; (und natürlich das bei &quot;VCL verwenden&quot;).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386241</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Tue, 16 Oct 2007 10:36:58 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Tutorial Beispiel on Tue, 16 Oct 2007 10:38:44 GMT]]></title><description><![CDATA[<p>ok thx <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title="=)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386242</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386242</guid><dc:creator><![CDATA[Bassmaster]]></dc:creator><pubDate>Tue, 16 Oct 2007 10:38:44 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Tutorial Beispiel on Tue, 16 Oct 2007 10:47:29 GMT]]></title><description><![CDATA[<p>Ich hab diesen Source Code Compiliert aber da kommt immer die Fehlermeldung</p>
<p>Unresolved external'_Init'VCL'referenced from E:\BORLAND BUILDER 6\LIB\CP32MTI.LIB|crtlvcl</p>
<p>Unresolved external'_ExitVCL referenced from E:\BORLAND BUILDER 6\LIB\CP32MTI.LIB|crtlvcl</p>
<p>was bedeuten dise Fehlermeldungen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386248</guid><dc:creator><![CDATA[Bassmaster]]></dc:creator><pubDate>Tue, 16 Oct 2007 10:47:29 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Tutorial Beispiel on Tue, 16 Oct 2007 10:49:15 GMT]]></title><description><![CDATA[<p>Hab schon den Fehler gefunden ich hatte aus versehen bei VLC einen Haken drin XD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386249</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386249</guid><dc:creator><![CDATA[Bassmaster]]></dc:creator><pubDate>Tue, 16 Oct 2007 10:49:15 GMT</pubDate></item></channel></rss>