<?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[EAccessViolation]]></title><description><![CDATA[<p>Hi<br />
ich hab mal wieder ein problem und hoffe, dass ich es in die richtges forum gepostet hab.<br />
[bereits gelöst] Also hier sind 2 Formulare mit Quell- und Headerdateien.<br />
ich nutze BCB6<br />
in der TForm1 Klasse (Public) hab ich (schon) 2 Funktionen die ich aus den quelldateien der beiden Formularen nutzen will. noch vor class TForm1 :Public TForm... hab ich die Prototypen der beiden funktionen.....<br />
Includes:<br />
Form1.cpp -&gt; Form1.h &amp;Standartincludes<br />
Form1.h -&gt; Standartincludes &amp; Form2.h<br />
Form2.cpp -&gt; Form1.h, Form2.h &amp;Standardincludes<br />
Form2.h -&gt; Standartincludes</p>
<p>des weiteren hab ich vor der Klassendefnition von Form2 (Form2.h) class TForm1; eingefügt, es soll eine forwärtsdefinition sein, wenn sie das nicht ist sagts...</p>
<p>das Problem ist, das ich beim Kompilieren folgende fehlermeldungen bekomme...<br />
Erzeugen<br />
[Linker Fehler] Unresolved external 'GPoa()' referenced from G:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\Form1.OBJ<br />
[Linker Fehler] Unresolved external 'GP()' referenced from G:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\Form2.OBJ</p>
<p>[/bereits gelöst]<br />
wenn ich die Funktionen hinter die Klasse schreibe, dann funzts????? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
ah ne doch nich...<br />
ich erhalte immer eine EAccessViolation(BCB Debugger) und dann EInvalidOp wenn folgende Funxion ausgeführt werden soll:</p>
<pre><code class="language-cpp">double GPoa(void)
{
try
{
double GP;
for(int i =1; i&lt;Form1-&gt;TStringGrid1-&gt;RowCount;i++)
{
GP =GP+Form1-&gt;TStringGrid1-&gt;Cells[4][i].ToDouble();
}
Form1-&gt;Edit1-&gt;Text=GP;
return GP;
}
catch(...)
{}
}
</code></pre>
<p>ich erhalte den Fehler immer wenn diese funktion ausgeführ werden soll, egal ob ich sie aus Form1 oder Form2 aufrufe...<br />
die funktion steht unterhalb von</p>
<pre><code class="language-cpp">__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
</code></pre>
<p>hoff, ihr könnt mir helfen... <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="🙂"
    /><br />
Elefunty<br />
-&gt;wenn mir noch was einfallt oda so schreib ichs hier rein... wenn ihr was benötigt sagt bescheid</p>
<p>[EDIT]<br />
ich habe die beiden funktionen in eine eigene *.h datei geschmissen.<br />
doch das geht auch nich:</p>
<pre><code class="language-cpp">class TForm1;
class TForm2;
Prototypen
Funktionen
</code></pre>
<p>dann heißt es:</p>
<pre><code>Funktionen.h(13), undefiniertes Symbol 'Form2'
Funktionen.h(34), undefiniertes Symbol 'Form1'
Funktionen.h(38), undefiniertes Symbol 'Form1'
</code></pre>
<p>wat is jez falsch?<br />
ich denke, bzw ich hoffe, dass es jetzt verständlicher ist... :p</p>
<p>Ele</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188208/eaccessviolation</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 22:21:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188208.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Jul 2007 10:44:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EAccessViolation on Sun, 29 Jul 2007 15:57:41 GMT]]></title><description><![CDATA[<p>Hi<br />
ich hab mal wieder ein problem und hoffe, dass ich es in die richtges forum gepostet hab.<br />
[bereits gelöst] Also hier sind 2 Formulare mit Quell- und Headerdateien.<br />
ich nutze BCB6<br />
in der TForm1 Klasse (Public) hab ich (schon) 2 Funktionen die ich aus den quelldateien der beiden Formularen nutzen will. noch vor class TForm1 :Public TForm... hab ich die Prototypen der beiden funktionen.....<br />
Includes:<br />
Form1.cpp -&gt; Form1.h &amp;Standartincludes<br />
Form1.h -&gt; Standartincludes &amp; Form2.h<br />
Form2.cpp -&gt; Form1.h, Form2.h &amp;Standardincludes<br />
Form2.h -&gt; Standartincludes</p>
<p>des weiteren hab ich vor der Klassendefnition von Form2 (Form2.h) class TForm1; eingefügt, es soll eine forwärtsdefinition sein, wenn sie das nicht ist sagts...</p>
<p>das Problem ist, das ich beim Kompilieren folgende fehlermeldungen bekomme...<br />
Erzeugen<br />
[Linker Fehler] Unresolved external 'GPoa()' referenced from G:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\Form1.OBJ<br />
[Linker Fehler] Unresolved external 'GP()' referenced from G:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\Form2.OBJ</p>
<p>[/bereits gelöst]<br />
wenn ich die Funktionen hinter die Klasse schreibe, dann funzts????? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
ah ne doch nich...<br />
ich erhalte immer eine EAccessViolation(BCB Debugger) und dann EInvalidOp wenn folgende Funxion ausgeführt werden soll:</p>
<pre><code class="language-cpp">double GPoa(void)
{
try
{
double GP;
for(int i =1; i&lt;Form1-&gt;TStringGrid1-&gt;RowCount;i++)
{
GP =GP+Form1-&gt;TStringGrid1-&gt;Cells[4][i].ToDouble();
}
Form1-&gt;Edit1-&gt;Text=GP;
return GP;
}
catch(...)
{}
}
</code></pre>
<p>ich erhalte den Fehler immer wenn diese funktion ausgeführ werden soll, egal ob ich sie aus Form1 oder Form2 aufrufe...<br />
die funktion steht unterhalb von</p>
<pre><code class="language-cpp">__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
</code></pre>
<p>hoff, ihr könnt mir helfen... <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="🙂"
    /><br />
Elefunty<br />
-&gt;wenn mir noch was einfallt oda so schreib ichs hier rein... wenn ihr was benötigt sagt bescheid</p>
<p>[EDIT]<br />
ich habe die beiden funktionen in eine eigene *.h datei geschmissen.<br />
doch das geht auch nich:</p>
<pre><code class="language-cpp">class TForm1;
class TForm2;
Prototypen
Funktionen
</code></pre>
<p>dann heißt es:</p>
<pre><code>Funktionen.h(13), undefiniertes Symbol 'Form2'
Funktionen.h(34), undefiniertes Symbol 'Form1'
Funktionen.h(38), undefiniertes Symbol 'Form1'
</code></pre>
<p>wat is jez falsch?<br />
ich denke, bzw ich hoffe, dass es jetzt verständlicher ist... :p</p>
<p>Ele</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1334249</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334249</guid><dc:creator><![CDATA[Elefunty]]></dc:creator><pubDate>Sun, 29 Jul 2007 15:57:41 GMT</pubDate></item><item><title><![CDATA[Reply to EAccessViolation on Sun, 29 Jul 2007 18:25:47 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL/CLX (Borland C++ Builder)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1334503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334503</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 29 Jul 2007 18:25:47 GMT</pubDate></item><item><title><![CDATA[Reply to EAccessViolation on Sun, 29 Jul 2007 18:28:20 GMT]]></title><description><![CDATA[<p>so ich hab jez die funktionen wieder in die public von TForm1 geschrieben und sie dann mit Form1-&gt;Funktion1(); angesprochen...</p>
<p>denkbar einfach und damit hab ich gute 1 1/2 Tage gebraucht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /><br />
naja fehler sind da, um aus ihnen zu lernen...</p>
<p>Egal</p>
<p>Ele</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1334509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334509</guid><dc:creator><![CDATA[Elefunty]]></dc:creator><pubDate>Sun, 29 Jul 2007 18:28:20 GMT</pubDate></item></channel></rss>