<?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[Eigene Class in eine Form bekannt geben.]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine Class in Myfunc.cpp inhaltet. ob wohl Myfunc.cpp in Projet hingefügt habe, In die Form1 ist meine Class nicht bekannt.</p>
<p>Kann jemand bitte mir sagen, was ich noch zusätlich machen muss.</p>
<p>Inhalt von Myfunc.cpp<br />
//////////////////////////////<br />
class Globaldata<br />
{<br />
private:<br />
XXXXXXXXXX<br />
Public:<br />
xxxx();</p>
<p>}</p>
<p>Globaldata *Data=new Globaldata ;</p>
<p>///////////////////////////////////</p>
<p>Ich will &quot;delete Data;&quot; on Form close erledigen.</p>
<p>Gruß<br />
S.Mathi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/113621/eigene-class-in-eine-form-bekannt-geben</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 11:42:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/113621.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Jun 2005 16:27:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eigene Class in eine Form bekannt geben. on Fri, 24 Jun 2005 16:27:09 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine Class in Myfunc.cpp inhaltet. ob wohl Myfunc.cpp in Projet hingefügt habe, In die Form1 ist meine Class nicht bekannt.</p>
<p>Kann jemand bitte mir sagen, was ich noch zusätlich machen muss.</p>
<p>Inhalt von Myfunc.cpp<br />
//////////////////////////////<br />
class Globaldata<br />
{<br />
private:<br />
XXXXXXXXXX<br />
Public:<br />
xxxx();</p>
<p>}</p>
<p>Globaldata *Data=new Globaldata ;</p>
<p>///////////////////////////////////</p>
<p>Ich will &quot;delete Data;&quot; on Form close erledigen.</p>
<p>Gruß<br />
S.Mathi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/816551</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/816551</guid><dc:creator><![CDATA[smathi]]></dc:creator><pubDate>Fri, 24 Jun 2005 16:27:09 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Class in eine Form bekannt geben. on Fri, 24 Jun 2005 16:49:41 GMT]]></title><description><![CDATA[<p>hast du die datei &quot;Myfunc.cpp&quot; in der der Form1-Klasse hinzugefügt ?<br />
d.h. hast du</p>
<p>include &quot;Myfunc.cpp&quot;</p>
<p>in der datei form1.cpp oder form1.h gemacht ?<br />
nur hinzufügen zum project reicht nicht.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/816566</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/816566</guid><dc:creator><![CDATA[olli11]]></dc:creator><pubDate>Fri, 24 Jun 2005 16:49:41 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Class in eine Form bekannt geben. on Fri, 24 Jun 2005 17:28:42 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>wenn ich In Form1.cpp include &quot;Myfunc.cpp&quot; setze bekomme folgende Fehler:</p>
<p>[Linker Warnung] Public symbol '_Data' defined in both module L:\C\CSV\1\MAIN.OBJ and L:\C\CSV\1\MYFUNC.OBJ</p>
<p>Program startet. Aber auf die stelle, wo ich Form1-&gt; anspreche, passiert Speicher Fehler(kommt laufzeitfehler.)</p>
<p>wenn ich In Form1.h include &quot;Myfunc.cpp&quot; setze bekomme folgende Fehler:</p>
<p>Überall, wo ich in meine Funktion Form1 angeprochen habe, jetzt Form1 ist nicht bekannt.</p>
<p>Gruß<br />
S.Mathi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/816572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/816572</guid><dc:creator><![CDATA[smathi]]></dc:creator><pubDate>Fri, 24 Jun 2005 17:28:42 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Class in eine Form bekannt geben. on Fri, 24 Jun 2005 17:37:48 GMT]]></title><description><![CDATA[<p>Wo versuchst du die instanz zu erstellen ? wenn du das in TForm1::TForm1 machst kommt ein fahler, da zu diseser Zeit die klasse noch nicht erstellt / geladen ist. deswegen erstall mal ein button mit folgendem OnClick ereigniss:</p>
<p>Globaldata *Data=new Globaldata ;</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/816590</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/816590</guid><dc:creator><![CDATA[olli11]]></dc:creator><pubDate>Fri, 24 Jun 2005 17:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Class in eine Form bekannt geben. on Sat, 25 Jun 2005 08:15:41 GMT]]></title><description><![CDATA[<p>Ich würde es mal mit #include &quot;myfunc.<strong>h</strong> versuchen. Ich bin der Meinung eine .cpp datei kann und sollte man nicht includen.</p>
<p>Aber korrigiert mich wenn ich mich irren sollte.</p>
<p>Du solltest auch im header von myfunc noch deine Klassen definitionen in</p>
<pre><code>#ifndef _Myfunc_h_
#define _Myfunc_h_

...

Klassendefinition 

...

#endif
</code></pre>
<p>einfügen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/816814</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/816814</guid><dc:creator><![CDATA[Fox-Alpha]]></dc:creator><pubDate>Sat, 25 Jun 2005 08:15:41 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Class in eine Form bekannt geben. on Sun, 26 Jun 2005 18:17:10 GMT]]></title><description><![CDATA[<p>mit dem Cpp file includen habe keine erfolgt.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/195">@Fox-Alpha</a> : was meist du mit &quot;Klassendefinition&quot;:</p>
<p>Kompletes Code von meine Klasse. oder ähnlich wie Funktion definition?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/817675</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817675</guid><dc:creator><![CDATA[smathi]]></dc:creator><pubDate>Sun, 26 Jun 2005 18:17:10 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Class in eine Form bekannt geben. on Mon, 27 Jun 2005 22:00:05 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/195">@Fox-Alpha</a>:<br />
Ich bin der Meinung, dass bei sehr kleinen Klassen das includieren von CPP Dateien durchaus sinnvoll ist, um einen Datei-überfluss zu vermeiden. Klar ist es bei umfangreichen klassen besser eine header-Datei zu erstellen. Aber manchmal ist es einfach nicht nötig. (Meine Meinung)</p>
<p>zum eigentlichen Problem: Ich glaube, solche Fragen muss man nicht beantworten, da Personen die sie stellen KEINE ahnung von dem Zeug haben und ich sehe es nicht ein Leuten zu helfen die zu faul sind sich einen grundlagentext durchzulesen, in dem sicher die passende antwort zu finden ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/818652</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818652</guid><dc:creator><![CDATA[olli11]]></dc:creator><pubDate>Mon, 27 Jun 2005 22:00:05 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Class in eine Form bekannt geben. on Tue, 28 Jun 2005 08:46:36 GMT]]></title><description><![CDATA[<p><a href="http://www.volkard.de/vcppkold/inhalt.html" rel="nofollow">http://www.volkard.de/vcppkold/inhalt.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/818757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818757</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Tue, 28 Jun 2005 08:46:36 GMT</pubDate></item></channel></rss>