<?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[PaintBox zeichnen macht Probleme]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich schreibe grade an einem Programmm mit dem<br />
man auf der PaintBoix des Borland Builders<br />
eine Linie zeichen kann. Leider bekomme ich<br />
immer diese Fehlermeldung. Wäre echt super<br />
wenn mir jemand einen Tipp geben könnte.</p>
<pre><code>[C++ Fehler] Unit1.cpp(301): E2451 Undefiniertes Symbol 'x_start'
[C++ Fehler] Unit1.cpp(302): E2451 Undefiniertes Symbol 'y_start'
[C++ Fehler] Unit1.cpp(303): E2451 Undefiniertes Symbol 'x_prev'
[C++ Fehler] Unit1.cpp(304): E2451 Undefiniertes Symbol 'y_prev'
[C++ Fehler] Unit1.cpp(308): E2451 Undefiniertes Symbol 'mouse_down'
[C++ Fehler] Unit1.cpp(315): E2451 Undefiniertes Symbol 'mouse_down'
[C++ Fehler] Unit1.cpp(315): E2451 Undefiniertes Symbol 'rgDrawElement'
[C++ Fehler] Unit1.cpp(318): E2451 Undefiniertes Symbol 'x_start'
[C++ Fehler] Unit1.cpp(318): E2451 Undefiniertes Symbol 'y_start'
[C++ Fehler] Unit1.cpp(319): E2451 Undefiniertes Symbol 'x_prev'
[C++ Fehler] Unit1.cpp(319): E2451 Undefiniertes Symbol 'y_prev'
</code></pre>
<pre><code>//---------------------------------------------------------------------------
void __fastcall TForm1::PaintBox2MouseDown(TObject *Sender,
      TMouseButton Button, TShiftState Shift, int X, int Y)
{
x_start=X;
y_start=Y;
x_prev=x_start;
y_prev=y_start;

PaintBox2-&gt;Canvas-&gt;MoveTo(X,Y);

mouse_down=true;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::PaintBox2MouseMove(TObject *Sender,
      TShiftState Shift, int X, int Y)
{
if (mouse_down &amp;&amp; rgDrawElement-&gt;ItemIndex == 0)
{
PaintBox2-&gt;Canvas-&gt;Pen-&gt;Color = PaintBox2-&gt;Color;
PaintBox2-&gt;Canvas-&gt;MoveTo(x_start,y_start);
PaintBox2-&gt;Canvas-&gt;LineTo(x_prev,y_prev);

PaintBox2-&gt;Canvas-&gt;Pen-&gt;Color = clBlack;
PaintBox2-&gt;Canvas-&gt;MoveTo(x_start,y_start);
PaintBox2-&gt;Canvas-&gt;LineTo(X,Y);

x_prev=X;
y_prev=Y;

}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/202115/paintbox-zeichnen-macht-probleme</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 07:06:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/202115.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Jan 2008 18:33:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PaintBox zeichnen macht Probleme on Mon, 07 Jan 2008 18:33:25 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich schreibe grade an einem Programmm mit dem<br />
man auf der PaintBoix des Borland Builders<br />
eine Linie zeichen kann. Leider bekomme ich<br />
immer diese Fehlermeldung. Wäre echt super<br />
wenn mir jemand einen Tipp geben könnte.</p>
<pre><code>[C++ Fehler] Unit1.cpp(301): E2451 Undefiniertes Symbol 'x_start'
[C++ Fehler] Unit1.cpp(302): E2451 Undefiniertes Symbol 'y_start'
[C++ Fehler] Unit1.cpp(303): E2451 Undefiniertes Symbol 'x_prev'
[C++ Fehler] Unit1.cpp(304): E2451 Undefiniertes Symbol 'y_prev'
[C++ Fehler] Unit1.cpp(308): E2451 Undefiniertes Symbol 'mouse_down'
[C++ Fehler] Unit1.cpp(315): E2451 Undefiniertes Symbol 'mouse_down'
[C++ Fehler] Unit1.cpp(315): E2451 Undefiniertes Symbol 'rgDrawElement'
[C++ Fehler] Unit1.cpp(318): E2451 Undefiniertes Symbol 'x_start'
[C++ Fehler] Unit1.cpp(318): E2451 Undefiniertes Symbol 'y_start'
[C++ Fehler] Unit1.cpp(319): E2451 Undefiniertes Symbol 'x_prev'
[C++ Fehler] Unit1.cpp(319): E2451 Undefiniertes Symbol 'y_prev'
</code></pre>
<pre><code>//---------------------------------------------------------------------------
void __fastcall TForm1::PaintBox2MouseDown(TObject *Sender,
      TMouseButton Button, TShiftState Shift, int X, int Y)
{
x_start=X;
y_start=Y;
x_prev=x_start;
y_prev=y_start;

PaintBox2-&gt;Canvas-&gt;MoveTo(X,Y);

mouse_down=true;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::PaintBox2MouseMove(TObject *Sender,
      TShiftState Shift, int X, int Y)
{
if (mouse_down &amp;&amp; rgDrawElement-&gt;ItemIndex == 0)
{
PaintBox2-&gt;Canvas-&gt;Pen-&gt;Color = PaintBox2-&gt;Color;
PaintBox2-&gt;Canvas-&gt;MoveTo(x_start,y_start);
PaintBox2-&gt;Canvas-&gt;LineTo(x_prev,y_prev);

PaintBox2-&gt;Canvas-&gt;Pen-&gt;Color = clBlack;
PaintBox2-&gt;Canvas-&gt;MoveTo(x_start,y_start);
PaintBox2-&gt;Canvas-&gt;LineTo(X,Y);

x_prev=X;
y_prev=Y;

}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1432619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1432619</guid><dc:creator><![CDATA[seb19]]></dc:creator><pubDate>Mon, 07 Jan 2008 18:33:25 GMT</pubDate></item><item><title><![CDATA[Reply to PaintBox zeichnen macht Probleme on Mon, 07 Jan 2008 18:44:57 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Was ist an den Fehlermeldung nicht zu verstehen? Der Compiler findet in den gezeigten Funktionen keine Variablendeklarationen mit den angegeben Namen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1432625</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1432625</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 07 Jan 2008 18:44:57 GMT</pubDate></item><item><title><![CDATA[Reply to PaintBox zeichnen macht Probleme on Mon, 07 Jan 2008 19:10:57 GMT]]></title><description><![CDATA[<p>akari schrieb:</p>
<blockquote>
<p>Hallo</p>
<p>Was ist an den Fehlermeldung nicht zu verstehen? Der Compiler findet in den gezeigten Funktionen keine Variablendeklarationen mit den angegeben Namen.</p>
<p>bis bald<br />
akari</p>
</blockquote>
<p>Und wie definiere ich die Symbole? bin am verzweilen....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1432642</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1432642</guid><dc:creator><![CDATA[seb19]]></dc:creator><pubDate>Mon, 07 Jan 2008 19:10:57 GMT</pubDate></item><item><title><![CDATA[Reply to PaintBox zeichnen macht Probleme on Mon, 07 Jan 2008 19:19:31 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Du solltest unbedingt erstmal die Grundlagen von C++ lernen bevor du dich an GUI-Projekte wagst. Denn das Deklarieren von Variablen lernt man in jedem Tutorial wie dem <a href="http://tutorial.schornboeck.net/variablen.htm" rel="nofollow">hier</a>.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1432646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1432646</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 07 Jan 2008 19:19:31 GMT</pubDate></item><item><title><![CDATA[Reply to PaintBox zeichnen macht Probleme on Thu, 10 Jan 2008 21:05:26 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/474">@seb</a> 19:<br />
Ja würde ich dir auch empfehlen, habe mich nun selbst für längere Zeit in die Konsole eingearbeit (v.a. Objektorientierung) und habe gerade (~vor 2 Wochen) mit Gui angefangen. Ich muss sagen, ohne Klassenkenntnisse würde ich keinem empfehlen gui anzufangen, ich sehe es in meiner Schulklasse, die rätseln immer rum &quot;Probier ich halt mal den Pfeil (-&gt;)&quot; o.Ä.</p>
<p>Am meisten hab ich (wie auch bis jetzt unter GUI) gelernt, indem ich angefangen habe &quot;Spiele&quot; zu programmieren, ich weiß noch ein Quelltext (den was ein Kolleg und ich unserem &quot;Programmier&quot;lehrer abgegeben haben umfasste 60 Seiten....</p>
<p>mfg. Helli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1434575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1434575</guid><dc:creator><![CDATA[o*amp*oler]]></dc:creator><pubDate>Thu, 10 Jan 2008 21:05:26 GMT</pubDate></item></channel></rss>