<?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[komponente in anwendung einfügen]]></title><description><![CDATA[<p>hi,</p>
<p>ich will in einer &quot;normalen&quot; windows anwendung (neu -&gt; konsolen experte -&gt; den haken bei &quot;konsolen-anwendung&quot; weg) eine komponente einfügen.</p>
<p>ser quelltext sieht ja dann so aus:</p>
<pre><code class="language-cpp">#include &lt;vcl.h&gt;
#include &lt;windows.h&gt;

WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
  return 0;
}
</code></pre>
<p>wie kann ich da jetzt eine komponente einfügen???</p>
<p>mit (z.B. ein button)</p>
<pre><code class="language-cpp">TButton button = new TButton(...);
</code></pre>
<p>nur was muss jetzt an die stelle der 3 punkte???<br />
c++ builder sagt mir<br />
- TComponent * owner<br />
- void * ParentWindow<br />
- const TButton &amp;</p>
<p>das parent window will ich mal weglassen, weil ja nicht jede komponente das unterstützt (z.B. TServerSocket)</p>
<p>und was soll ich jetzt da reinschreiben???</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/109712/komponente-in-anwendung-einfügen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 10:33:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/109712.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 May 2005 19:05:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to komponente in anwendung einfügen on Thu, 12 May 2005 19:05:58 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich will in einer &quot;normalen&quot; windows anwendung (neu -&gt; konsolen experte -&gt; den haken bei &quot;konsolen-anwendung&quot; weg) eine komponente einfügen.</p>
<p>ser quelltext sieht ja dann so aus:</p>
<pre><code class="language-cpp">#include &lt;vcl.h&gt;
#include &lt;windows.h&gt;

WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
  return 0;
}
</code></pre>
<p>wie kann ich da jetzt eine komponente einfügen???</p>
<p>mit (z.B. ein button)</p>
<pre><code class="language-cpp">TButton button = new TButton(...);
</code></pre>
<p>nur was muss jetzt an die stelle der 3 punkte???<br />
c++ builder sagt mir<br />
- TComponent * owner<br />
- void * ParentWindow<br />
- const TButton &amp;</p>
<p>das parent window will ich mal weglassen, weil ja nicht jede komponente das unterstützt (z.B. TServerSocket)</p>
<p>und was soll ich jetzt da reinschreiben???</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/787484</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/787484</guid><dc:creator><![CDATA[mr_beer]]></dc:creator><pubDate>Thu, 12 May 2005 19:05:58 GMT</pubDate></item><item><title><![CDATA[Reply to komponente in anwendung einfügen on Thu, 12 May 2005 19:19:20 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>wie kann ich da jetzt eine komponente einfügen???</p>
</blockquote>
<p>Garnicht. VCL-Komponenten benötigen ein VCL-Form als Owner.<br />
So must du mit WinAPI-Mitteln arbeiten, und dazu bist du im falschen Forum.</p>
<p>Warum erstellst du ein WinAPI-Konsolenprojekt, wenn du VCL-Komponenten verwenden willst? Nimm eine richtige VCL-Standard Anwendung.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/787495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/787495</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 12 May 2005 19:19:20 GMT</pubDate></item></channel></rss>