<?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[TButton dynamisch erzeugen (Onclick-Problem)]]></title><description><![CDATA[<pre><code class="language-cpp">TButton *Btnfield[9][9];

...

// die ClickEvent-prozedur
void __fastcall BtnClick(TObject *Sender)
{

}

...

//die Erzeugung:

Btnfield[a][b] = new TButton(this);
Btnfield[a][b]-&gt;Parent=this;
Btnfield[a][b]-&gt;Width=20;
Btnfield[a][b]-&gt;Height=20;
Btnfield[a][b]-&gt;Caption=&quot;&quot;;
Btnfield[a][b]-&gt;Tag=(b-1)*9+a;

Btnfield[a][b]-&gt;OnClick=BtnClick;

...

//die .h datei entsprechend:

void __fastcall BtnClick(TObject *Sender);
</code></pre>
<p>das problem ist dass ich folgendes</p>
<p>[Linker Error] Unresolved external '__fastcall TForm1::BtnClick(System::TObject *)' referenced from C:\DOKUMENTE UND EINSTELLUNGEN\...\MAIN.OBJ</p>
<p>warum? was hab ich vergessen?<br />
habe die dynamische erzeugung doch schon öfter gemacht, nur irgendwie gehts diesmal nich...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/144585/tbutton-dynamisch-erzeugen-onclick-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 04 Aug 2026 21:43:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/144585.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Apr 2006 15:48:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TButton dynamisch erzeugen (Onclick-Problem) on Wed, 19 Apr 2006 15:48:13 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">TButton *Btnfield[9][9];

...

// die ClickEvent-prozedur
void __fastcall BtnClick(TObject *Sender)
{

}

...

//die Erzeugung:

Btnfield[a][b] = new TButton(this);
Btnfield[a][b]-&gt;Parent=this;
Btnfield[a][b]-&gt;Width=20;
Btnfield[a][b]-&gt;Height=20;
Btnfield[a][b]-&gt;Caption=&quot;&quot;;
Btnfield[a][b]-&gt;Tag=(b-1)*9+a;

Btnfield[a][b]-&gt;OnClick=BtnClick;

...

//die .h datei entsprechend:

void __fastcall BtnClick(TObject *Sender);
</code></pre>
<p>das problem ist dass ich folgendes</p>
<p>[Linker Error] Unresolved external '__fastcall TForm1::BtnClick(System::TObject *)' referenced from C:\DOKUMENTE UND EINSTELLUNGEN\...\MAIN.OBJ</p>
<p>warum? was hab ich vergessen?<br />
habe die dynamische erzeugung doch schon öfter gemacht, nur irgendwie gehts diesmal nich...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1040687</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1040687</guid><dc:creator><![CDATA[It0101]]></dc:creator><pubDate>Wed, 19 Apr 2006 15:48:13 GMT</pubDate></item><item><title><![CDATA[Reply to TButton dynamisch erzeugen (Onclick-Problem) on Wed, 19 Apr 2006 15:51:32 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>du must die Implementation der Methode noch zu der Klasse zuordnen</p>
<pre><code class="language-cpp">void __fastcall TForm1::BtnClick(TObject *Sender)
{
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1040689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1040689</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 19 Apr 2006 15:51:32 GMT</pubDate></item><item><title><![CDATA[Reply to TButton dynamisch erzeugen (Onclick-Problem) on Wed, 19 Apr 2006 16:10:35 GMT]]></title><description><![CDATA[<p>ah vielen dank, das wars <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>
<p>weiss zufällig noch jemand wie ich jetzt den TypeCast von TObject auf TButton mache?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1040713</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1040713</guid><dc:creator><![CDATA[It0101]]></dc:creator><pubDate>Wed, 19 Apr 2006 16:10:35 GMT</pubDate></item><item><title><![CDATA[Reply to TButton dynamisch erzeugen (Onclick-Problem) on Wed, 19 Apr 2006 16:14:23 GMT]]></title><description><![CDATA[<p><a href="http://www.marquardtnet.info/cecke/quickies.1/1_quicky_17.html" rel="nofollow">http://www.marquardtnet.info/cecke/quickies.1/1_quicky_17.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1040717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1040717</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Wed, 19 Apr 2006 16:14:23 GMT</pubDate></item><item><title><![CDATA[Reply to TButton dynamisch erzeugen (Onclick-Problem) on Wed, 19 Apr 2006 16:25:26 GMT]]></title><description><![CDATA[<p>dangö <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="🙂"
    /> funzt bestens</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1040726</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1040726</guid><dc:creator><![CDATA[It0101]]></dc:creator><pubDate>Wed, 19 Apr 2006 16:25:26 GMT</pubDate></item></channel></rss>