<?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[Wer wird Millionär]]></title><description><![CDATA[<p>Hallo,<br />
ich arbeite an einem kleinen Spiel ähnlich wie wer wird millionär. Jetzt habe ich 4 Labels mit den verschiedenen Lösungen wie kann ich es jetzt mit Borland VCL umsetzten das 2 falsche gelöscht werden. Ich brauche ein paar Lösungsansätze wie man soetwas realisiert!!!</p>
<p>Gruß heino</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/153733/wer-wird-millionär</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 09:47:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/153733.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Jul 2006 08:07:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 08:07:36 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich arbeite an einem kleinen Spiel ähnlich wie wer wird millionär. Jetzt habe ich 4 Labels mit den verschiedenen Lösungen wie kann ich es jetzt mit Borland VCL umsetzten das 2 falsche gelöscht werden. Ich brauche ein paar Lösungsansätze wie man soetwas realisiert!!!</p>
<p>Gruß heino</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100822</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100822</guid><dc:creator><![CDATA[heino]]></dc:creator><pubDate>Thu, 20 Jul 2006 08:07:36 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 08:14:07 GMT]]></title><description><![CDATA[<p>hm....naja markiere dir irgendwie das label mit der richtigen antwort, und lass dann per zufallszahl zwischen 1 und 4 , 2 andere labels unsichtbar machen (siehe visible eigenschaft)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100827</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100827</guid><dc:creator><![CDATA[ser1al]]></dc:creator><pubDate>Thu, 20 Jul 2006 08:14:07 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 08:15:15 GMT]]></title><description><![CDATA[<p>ok,<br />
kannst du mir ein etwas Code zeigen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100828</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100828</guid><dc:creator><![CDATA[heino]]></dc:creator><pubDate>Thu, 20 Jul 2006 08:15:15 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 08:22:35 GMT]]></title><description><![CDATA[<p>Beispiel aus der BCB-Hilfe:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)

{
  const AnsiString InfoStr[10] = {&quot;CompanyName&quot;, &quot;FileDescription&quot;, &quot;FileVersion&quot;, &quot;InternalName&quot;, &quot;LegalCopyright&quot;, &quot;LegalTradeMarks&quot;, &quot;OriginalFileName&quot;, &quot;ProductName&quot;, &quot;ProductVersion&quot;, &quot;Comments&quot;};
  char *ExeName = Application-&gt;ExeName.c_str();
  DWORD n = GetFileVersionInfoSize(ExeName, n);
  if (n &gt; 0)
  {
    char *pBuf = (char *) malloc(n);
    AnsiString temp = &quot;VersionInfoSize = &quot;;
    Memo1-&gt;Lines-&gt;Add(temp + IntToStr(n));

    GetFileVersionInfo(ExeName, 0, n, pBuf);
    for (i = 0; i &lt; 10; i++)
    {
      char *pValue;
      DWORD Len;
      temp = &quot;StringFileInfo\\040904E4\\&quot;;
      temp = temp + InfoStr[i];
      if (VerQueryValue(pBuf, temp.c_str(), pValue, Len)
        Memo1-&gt;Lines-&gt;Add(InfoStr[i] + &quot; = &quot; + pValue);
    }
    free(pBuf);
  }
  else
    Memo1-&gt;Lines-&gt;Add(&quot;Keine Versionsinformation gefunden&quot;);

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1100834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100834</guid><dc:creator><![CDATA[Morris Szyslak]]></dc:creator><pubDate>Thu, 20 Jul 2006 08:22:35 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 08:27:54 GMT]]></title><description><![CDATA[<p>Für solche Markierungen bietet sich die Eigenschaft TLabel::Tag an.</p>
<p>Davon abgesehen, sind wir hier ein echt fieses Pack und geben primär Hilfe zur Selbsthilfe. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1100836</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100836</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 20 Jul 2006 08:27:54 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 13:13:06 GMT]]></title><description><![CDATA[<p>Erstelle doch einfach ein Array aus TLabel und erstelle diese zum Programmstart dynamisch, dann kannst du sie viel leichter handhaben:</p>
<pre><code class="language-cpp">// Anzahl der Labels definieren, sodass diese ggf. leicht geaendert werden kann
#define LBLCNT 4

/* ... */

// Globale Deklaration des Arrays
TLabel* LabelArray[LBLCNT];

/* ... */

// z.B. in OnCreate der Form:
for(int i=0;i&lt;LBLCNT;++i)
{
    LabelArray[i]=new TLabel(MyForm);
    LabelArray[i]-&gt;Parent=MyForm;
}
</code></pre>
<p>EDIT: Quelltext nicht getestet, da ich derzeit nicht den BCB zur Hand habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1101231</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1101231</guid><dc:creator><![CDATA[Sphy]]></dc:creator><pubDate>Thu, 20 Jul 2006 13:13:06 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 13:14:30 GMT]]></title><description><![CDATA[<p>Wenn er nur 4 Labels hat und die Anzahl sich nicht verändert, ist eine dynaische Erzeugung nicht nötig.<br />
Das mit dem Array kann man natürlich trotzdem machen aber bitte ohne define. Dafür gibt es const.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1101240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1101240</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 20 Jul 2006 13:14:30 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 13:18:52 GMT]]></title><description><![CDATA[<p>Und globale Variablen sind auch nicht sinnvoll. In den FAQ gibt es einen Beitrag dazu.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1101243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1101243</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 20 Jul 2006 13:18:52 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 13:39:07 GMT]]></title><description><![CDATA[<p>OK, dann mit const... ja, global ist nicht die feinste Variante, das stimmt, dann kann er halt ein Label-Array im Header in die Klasse seiner Form als Attribut eintragen. Viele Wege führen nach Rom. <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>EDIT:</p>
<pre><code class="language-cpp">/* Im Header in der Klasse der Form,
unter __published, wo alle anderen
Komponenten eingetragen sind: */
const int LabelCount;
TLabel* LabelArray[LabelCount];

/* ... */

// Im OnCreate deiner Form oder im Konstruktor:
LabelCount=4;
for(int i=0;i&lt;LabelCount;++i)
{
    LabelArray[i]=new TLabel(MyForm);
    LabelArray[i]-&gt;Parent=MyForm;
}
</code></pre>
<p>Ich bin mir allerdings nicht ganz sicher, ob das const innerhalb der Klasse funktioniert...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1101247</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1101247</guid><dc:creator><![CDATA[Sphy]]></dc:creator><pubDate>Thu, 20 Jul 2006 13:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 13:38:59 GMT]]></title><description><![CDATA[<p>Sphy schrieb:</p>
<blockquote>
<p>Erstelle doch einfach ein Array aus TLabel und erstelle diese zum Programmstart dynamisch, dann kannst du sie viel leichter handhaben</p>
</blockquote>
<p>Besser: Erstelle dir deine Labels zur Designzeit, erstelle dir einen privaten Array vom Typ TLabel*</p>
<pre><code class="language-cpp">private:
    TLabel* OptionLabels[4];
</code></pre>
<p>und schreibe dann in TForm::OnCreate oder in den Konstruktor der Form:</p>
<pre><code class="language-cpp">OptionLabels[0] = Label1;
OptionLabels[1] = Label2;
OptionLabels[2] = Label3;
OptionLabels[3] = Label4;
</code></pre>
<p>Dann sind deine Labels klar numeriert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1101261</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1101261</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Thu, 20 Jul 2006 13:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to Wer wird Millionär on Thu, 20 Jul 2006 13:40:01 GMT]]></title><description><![CDATA[<p>Oder so...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1101262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1101262</guid><dc:creator><![CDATA[Sphy]]></dc:creator><pubDate>Thu, 20 Jul 2006 13:40:01 GMT</pubDate></item></channel></rss>