<?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[Probleme mit CallWindowProc]]></title><description><![CDATA[<p>ich habe diesen code aus mehreren Beispielen:</p>
<pre><code class="language-cpp">WNDPROC g_wndpEdit;
   HWND hWnd;
   WPARAM wParam;
   LPARAM lParam;
   UINT uMsg;

   LRESULT lResult;

   lResult = CallWindowProc(g_wndpEdit, hWnd, uMsg, wParam, lParam); // hier tritt der Fehler auf
</code></pre>
<p>aber jedesmal beim Compilieren bekomme ich 2 fehlermeldungen</p>
<pre><code>[C++ Fehler] Unit1.cpp(24): E2034 Konvertierung von 'long (__stdcall *)(void *,unsigned int,unsigned int,long)' nach 'int (__stdcall *)()' nicht möglich
[C++ Fehler] Unit1.cpp(24): E2342 Keine Übereinstimmung des Typs beim Parameter 'lpPrevWndFunc' ('int (__stdcall *)()' erwartet, 'long (__stdcall *)(void *,unsigned int,unsigned int,long)' erhalten)
</code></pre>
<p>weiss jemand an was das liegt? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Habe Borland C++ Builder 6 Pro</p>
<p>schonmal thx</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/110613/probleme-mit-callwindowproc</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 00:32:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/110613.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 May 2005 22:51:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit CallWindowProc on Sun, 22 May 2005 22:51:53 GMT]]></title><description><![CDATA[<p>ich habe diesen code aus mehreren Beispielen:</p>
<pre><code class="language-cpp">WNDPROC g_wndpEdit;
   HWND hWnd;
   WPARAM wParam;
   LPARAM lParam;
   UINT uMsg;

   LRESULT lResult;

   lResult = CallWindowProc(g_wndpEdit, hWnd, uMsg, wParam, lParam); // hier tritt der Fehler auf
</code></pre>
<p>aber jedesmal beim Compilieren bekomme ich 2 fehlermeldungen</p>
<pre><code>[C++ Fehler] Unit1.cpp(24): E2034 Konvertierung von 'long (__stdcall *)(void *,unsigned int,unsigned int,long)' nach 'int (__stdcall *)()' nicht möglich
[C++ Fehler] Unit1.cpp(24): E2342 Keine Übereinstimmung des Typs beim Parameter 'lpPrevWndFunc' ('int (__stdcall *)()' erwartet, 'long (__stdcall *)(void *,unsigned int,unsigned int,long)' erhalten)
</code></pre>
<p>weiss jemand an was das liegt? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Habe Borland C++ Builder 6 Pro</p>
<p>schonmal thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/793871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/793871</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Sun, 22 May 2005 22:51:53 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CallWindowProc on Mon, 23 May 2005 14:26:47 GMT]]></title><description><![CDATA[<p>Hab mir jetzt die Funktion bei MSDN mal angeschaut (kleiner Tipp für die Zukunft <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="😉"
    /> ), und da steht folgendes</p>
<p>MSDN schrieb:</p>
<blockquote>
<p>If STRICT is defined, the lpPrevWndFunc parameter has the data type WNDPROC. The WNDPROC type is declared as follows:</p>
<p>LRESULT (CALLBACK* WNDPROC) (HWND, UINT, WPARAM, LPARAM);</p>
<p>If STRICT is not defined, the lpPrevWndFunc parameter has the data type FARPROC. The FARPROC type is declared as follows:</p>
<p>int (FAR WINAPI * FARPROC) ()</p>
<p>In C, the FARPROC declaration indicates a callback function that has an unspecified parameter list. In C++, however, the empty parameter list in the declaration indicates that a function has no parameters. This subtle distinction can break careless code. Following is one way to handle this situation:</p>
<p>#ifdef STRICT<br />
WNDPROC MyWindowProcedure<br />
#else<br />
FARPROC MyWindowProcedure<br />
#endif<br />
...<br />
lResult = CallWindowProc(MyWindowProcedure, ...) ;</p>
</blockquote>
<p>Ich persönlich würde dazu neigen, STRICT ganz einfach zu definieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/794277</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/794277</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Mon, 23 May 2005 14:26:47 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CallWindowProc on Mon, 23 May 2005 23:39:17 GMT]]></title><description><![CDATA[<p>groovemaster schrieb:</p>
<blockquote>
<p>Hab mir jetzt die Funktion bei MSDN mal angeschaut (kleiner Tipp für die Zukunft <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>
</blockquote>
<p>glaube mir, das habe ich stundenlang gemacht.. aber da mein englisch noch nciht so wirklich ausgereift ist, sah ich langsam keinen wald mehr vor lautet bäumen.<br />
aber vielmal thx, das hat funktioniert und mir weitergeholfen <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>
]]></description><link>https://www.c-plusplus.net/forum/post/794666</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/794666</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Mon, 23 May 2005 23:39:17 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CallWindowProc on Tue, 24 May 2005 13:01:09 GMT]]></title><description><![CDATA[<p>BigNeal schrieb:</p>
<blockquote>
<p>glaube mir, das habe ich stundenlang gemacht.. aber da mein englisch noch nciht so wirklich ausgereift ist, sah ich langsam keinen wald mehr vor lautet bäumen.</p>
</blockquote>
<p>Sry, konnte ich ja nicht wissen. Hättest du vllt. auch dazu schreiben können. Ich hoffe, du verstehst den kurzen Auszug. Schliesslich hab ich einfach nur Copy&amp;Paste gemacht. Ansonsten, einfach fragen. Immerhin kostet das nix. <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/795003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/795003</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Tue, 24 May 2005 13:01:09 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CallWindowProc on Tue, 24 May 2005 16:52:41 GMT]]></title><description><![CDATA[<p>schon ok, habe ja auch nichts gross dazu geschrieben <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="🙂"
    /></p>
<p>jep, danke habe alles verstanden. kleinere Texte verstehe ich schon, aber nach ner gewissen zeit und nach X-Seiten msdn auf englisch lief bei mir ne zeitlang gar nichts mehr auf englisch.<br />
aber funktioniert alles so wie ich es wollte <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>
<p>nochmals thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/795206</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/795206</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Tue, 24 May 2005 16:52:41 GMT</pubDate></item></channel></rss>