<?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[GetWindowText heult rum wegen falschen Window handle.]]></title><description><![CDATA[<p>Was ich ehrlich gesagt nicht nachvollziehen kann.<br />
Habe ein Parent window ein edit feld und einen button (ihr seht, grafisch bin ich eher bei den basics).<br />
In der WndProc ist jedes childhandle ( also auch das handle des editfeldes) global deklariert.<br />
Und die Funktion GetWindowText, die doch einfach ne blöde ip adresse aus diesem edit in ein string kopieren soll, meldet mir per GetLastError (code:1400), dass das handle nicht richtig sei...<br />
...<br />
nun sah ich Variante mit FindWindowEx... ok, nur:Warum wird ein globales Handle von dieser Funktion als invalid angesehen?!??<br />
hat da jemand Plan von? Ich bin durchaus am grübeln ud komme noch zu keiner Schlussfolgerung, WARUM das so ist.<br />
Grüsse, me-$-on.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/176755/getwindowtext-heult-rum-wegen-falschen-window-handle</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 19:37:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/176755.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Mar 2007 16:50:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetWindowText heult rum wegen falschen Window handle. on Sat, 24 Mar 2007 16:50:33 GMT]]></title><description><![CDATA[<p>Was ich ehrlich gesagt nicht nachvollziehen kann.<br />
Habe ein Parent window ein edit feld und einen button (ihr seht, grafisch bin ich eher bei den basics).<br />
In der WndProc ist jedes childhandle ( also auch das handle des editfeldes) global deklariert.<br />
Und die Funktion GetWindowText, die doch einfach ne blöde ip adresse aus diesem edit in ein string kopieren soll, meldet mir per GetLastError (code:1400), dass das handle nicht richtig sei...<br />
...<br />
nun sah ich Variante mit FindWindowEx... ok, nur:Warum wird ein globales Handle von dieser Funktion als invalid angesehen?!??<br />
hat da jemand Plan von? Ich bin durchaus am grübeln ud komme noch zu keiner Schlussfolgerung, WARUM das so ist.<br />
Grüsse, me-$-on.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1251728</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251728</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Sat, 24 Mar 2007 16:50:33 GMT</pubDate></item><item><title><![CDATA[Reply to GetWindowText heult rum wegen falschen Window handle. on Sat, 24 Mar 2007 19:28:10 GMT]]></title><description><![CDATA[<blockquote>
<p>In der WndProc ist jedes childhandle ( also auch das handle des editfeldes) global deklariert.</p>
</blockquote>
<p>... du wiedersprichst dir.</p>
<p>Zeig mal Code ... versteht man evt. besser.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1251834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251834</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 24 Mar 2007 19:28:10 GMT</pubDate></item><item><title><![CDATA[Reply to GetWindowText heult rum wegen falschen Window handle. on Sat, 24 Mar 2007 20:06:09 GMT]]></title><description><![CDATA[<h2>muss mich erstmal entschuldigen wegen meiner damaligen Posts, die waren doch emotional etwas sehr geprägt.<br />
Und das ich mein Windows-Gerüst nicht STILVOLL aufbaute, dass weiss ich, aber erst die skills dann der style.<br />
Wie bei graffiti, obwohl eines das lernen der basics immer etwas beeinflusst.<br />
Egal, das board nochmal zuzubomben erspare ich mir, hier der Link:</h2>
<p><a href="http://www.coding-board.de/board/showthread.php?p=138675#post138675" rel="nofollow">http://www.coding-board.de/board/showthread.php?p=138675#post138675</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1251866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251866</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Sat, 24 Mar 2007 20:06:09 GMT</pubDate></item><item><title><![CDATA[Reply to GetWindowText heult rum wegen falschen Window handle. on Sat, 24 Mar 2007 21:07:38 GMT]]></title><description><![CDATA[<p>me-S-on schrieb:</p>
<blockquote>
<p>In der WndProc ist jedes childhandle ( also auch das handle des editfeldes) global deklariert.</p>
</blockquote>
<p>Nein, Du hast sie dort <em>lokal</em> deklariert. Nimm sie da raus, dann müsste es laufen wie geplant.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1251902</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251902</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 24 Mar 2007 21:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to GetWindowText heult rum wegen falschen Window handle. on Sat, 24 Mar 2007 22:02:54 GMT]]></title><description><![CDATA[<p>Also, dass ich die &quot;global&quot; deklariert habe meinte ich gloabel bezüglich der WndProc.<br />
Deklariere ich die , wie in dem Quellcode link angegeben, so global, dass sie auch sowohl winmain als aus WndProc globhal ist, also GANZ GANZ GANZ global, dann sage ich : ich hebe es auch so schon getestet und dennoch: 1400.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1251929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251929</guid><dc:creator><![CDATA[kein bock auf login-meson]]></dc:creator><pubDate>Sat, 24 Mar 2007 22:02:54 GMT</pubDate></item><item><title><![CDATA[Reply to GetWindowText heult rum wegen falschen Window handle. on Sat, 24 Mar 2007 22:03:55 GMT]]></title><description><![CDATA[<p>wegen der rsf, bin etwas betrunken!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1251930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251930</guid><dc:creator><![CDATA[der gleiche]]></dc:creator><pubDate>Sat, 24 Mar 2007 22:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to GetWindowText heult rum wegen falschen Window handle. on Sat, 24 Mar 2007 23:03:27 GMT]]></title><description><![CDATA[<p>Probier mal :</p>
<pre><code class="language-cpp">GetDlgItemText (mwinhanP,2,uc_ipaddr,10);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1251969</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251969</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 24 Mar 2007 23:03:27 GMT</pubDate></item></channel></rss>