<?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[Fehler bei Zuweisung von OnDrawCell]]></title><description><![CDATA[<p>Hallo<br />
Ich habe ein Problem bei einer Zuweisung der OnDrawCell Routine bekomme immer diesen Fehler raus</p>
<p>E2034 Konvertierung von 'void (_fastcall *)(TObject *,int,int,const TRect &amp;,TGridDrawState)' nach 'void (_fastcall * (_closure )(TObject *,int,int,const TRect &amp;,TGridDrawState))(TObject *,int,int,const TRect &amp;,TGridDrawState)' nicht möglich.</p>
<p>Kann mir einer helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/102679/fehler-bei-zuweisung-von-ondrawcell</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 14:53:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/102679.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Feb 2005 16:40:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler bei Zuweisung von OnDrawCell on Mon, 28 Feb 2005 16:40:27 GMT]]></title><description><![CDATA[<p>Hallo<br />
Ich habe ein Problem bei einer Zuweisung der OnDrawCell Routine bekomme immer diesen Fehler raus</p>
<p>E2034 Konvertierung von 'void (_fastcall *)(TObject *,int,int,const TRect &amp;,TGridDrawState)' nach 'void (_fastcall * (_closure )(TObject *,int,int,const TRect &amp;,TGridDrawState))(TObject *,int,int,const TRect &amp;,TGridDrawState)' nicht möglich.</p>
<p>Kann mir einer helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734496</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734496</guid><dc:creator><![CDATA[skymaster]]></dc:creator><pubDate>Mon, 28 Feb 2005 16:40:27 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei Zuweisung von OnDrawCell on Mon, 28 Feb 2005 17:06:33 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>eventuell hilft dir dieser Thread weiter<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-80029-and-highlight-is-ondrawcell.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-80029-and-highlight-is-ondrawcell.html</a><br />
Es geht darum, das das const bei OnDrawGrid ein Fehler ist.<br />
Ansonsten poste mal die genau Funktionsdeklaration, die du zuweisen willst.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734544</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:06:33 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei Zuweisung von OnDrawCell on Mon, 28 Feb 2005 17:35:02 GMT]]></title><description><![CDATA[<p>Ja auch wenn ich const weglasse kommt der Fehler raus.</p>
<p>cpp :</p>
<pre><code>AB-&gt;OnDrawCell=myABDrawCell;
</code></pre>
<p>Fehler:</p>
<pre><code>Konvertierung von 'void (_fastcall *)(TObject *,int,int,TRect &amp;,TGridDrawState)' 
nach 'void (_fastcall * (_closure )(TObject *,int,int,const TRect &amp;,TGridDrawState))(TObject *,int,int,const TRect &amp;,TGridDrawState)'
nicht möglich.
</code></pre>
<p>Deklaration:</p>
<pre><code>void __fastcall myABDrawCell(TObject *Sender, int ACol, int ARow,TRect &amp;Rect, TGridDrawState State);
</code></pre>
<p>so wie ich das sehe muss irgendwie doch const stehen, aber vielleicht weis ja jemand mehr als ich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734562</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734562</guid><dc:creator><![CDATA[skymaster]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:35:02 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei Zuweisung von OnDrawCell on Mon, 28 Feb 2005 17:39:26 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>also diese Deklaration funktioniert bei mir :</p>
<pre><code class="language-cpp">void __fastcall myABDrawCell(TObject *Sender, int ACol, int ARow,const TRect &amp;Rect, TGridDrawState State);
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734569</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734569</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:39:26 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei Zuweisung von OnDrawCell on Mon, 28 Feb 2005 17:52:00 GMT]]></title><description><![CDATA[<p>Ja bei mir geht es ach wenn ich es Form bezogen deklariere.<br />
Aber geht das nicht das man es auch in einer separaten unit zuweisen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734580</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734580</guid><dc:creator><![CDATA[Skymaster]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei Zuweisung von OnDrawCell on Mon, 28 Feb 2005 20:44:17 GMT]]></title><description><![CDATA[<p>Gab es da nicht in den letzten Monaten schon mal einen Thread zu? Ich finde ihn allerdings nicht mehr. Falls ihn jemand findet...</p>
<p>(Nicht sicher:) Ich glaube das ist irgendeine Beschränkung beim BCB und ist somit nicht möglich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734753</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 28 Feb 2005 20:44:17 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei Zuweisung von OnDrawCell on Mon, 28 Feb 2005 20:48:05 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>ach so, da liegt das Problem. Nein, diese Events können nur Objekt-gebundene Funktionen aufrufen, das liegt am Schlüsselwort __closure (nein, du kannst es nicht wegmachen)<br />
Du wirst wohl in dem Form eine Zwischenfunktion einbauen müßen, die den Aufruf weiterleitet. An eine Funktion mit demselben Kopf, nur statt dem Sender das entsprechende Canvas.</p>
<pre><code class="language-cpp">void __fastcall myABDrawCell(TCanvas *Canvas, int ACol, int ARow,const TRect &amp;Rect, TGridDrawState State);
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734759</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 28 Feb 2005 20:48:05 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei Zuweisung von OnDrawCell on Mon, 28 Feb 2005 21:13:55 GMT]]></title><description><![CDATA[<p>Habe es jetzt mit Hilfe einer classe gelöst und das funktioniert Einwandfrei.<br />
<strong>Aber trotzten schönen dank für eure Hilfe…</strong>. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
<p>Mfg.<br />
skymaster</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734780</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734780</guid><dc:creator><![CDATA[skymaster]]></dc:creator><pubDate>Mon, 28 Feb 2005 21:13:55 GMT</pubDate></item></channel></rss>