<?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[Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27;]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich möchte einem Handle den Wert direkt übergeben, bei folgendem</p>
<pre><code class="language-cpp">HWND window =  0x10506;
</code></pre>
<p>erhalte ich die Fehlermeldung</p>
<p>[C++ Fehler] Unit3.cpp(23): E2034 Konvertierung von 'int' nach 'void *' nicht möglich</p>
<p>Wie kann ich die Konvertierung durchführen?</p>
<p>Gruss Lodo2609</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/195487/konvertierung-von-int-nach-void</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 09:31:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/195487.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Oct 2007 09:26:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27; on Thu, 18 Oct 2007 09:26:20 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich möchte einem Handle den Wert direkt übergeben, bei folgendem</p>
<pre><code class="language-cpp">HWND window =  0x10506;
</code></pre>
<p>erhalte ich die Fehlermeldung</p>
<p>[C++ Fehler] Unit3.cpp(23): E2034 Konvertierung von 'int' nach 'void *' nicht möglich</p>
<p>Wie kann ich die Konvertierung durchführen?</p>
<p>Gruss Lodo2609</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387713</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387713</guid><dc:creator><![CDATA[lodo2609]]></dc:creator><pubDate>Thu, 18 Oct 2007 09:26:20 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27; on Thu, 18 Oct 2007 09:48:16 GMT]]></title><description><![CDATA[<p>lodo2609 schrieb:</p>
<blockquote>
<p>ich möchte einem Handle den Wert direkt übergeben</p>
</blockquote>
<p>Darf man fragen wozu?</p>
<p>In aller Regel hat der Compiler einen guten Grund, dich an so etwas zu hindern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387728</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387728</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Thu, 18 Oct 2007 09:48:16 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27; on Thu, 18 Oct 2007 09:48:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">HWND window(reinterpret_cast&lt;HWND&gt;(0x10506));
</code></pre>
<p>wo kommt denn der wert her?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387729</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387729</guid><dc:creator><![CDATA[cpt. obvious]]></dc:creator><pubDate>Thu, 18 Oct 2007 09:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27; on Thu, 18 Oct 2007 10:52:48 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wir möchten aus einem anderen Programm ein Bild kopieren, das Handle davon ermitteln wir mit Hilfe des Programms WinID. Wenn jemand eine andere Idee hat, sind wir für alles offen.</p>
<p>Gruss</p>
<p>Lodo2609</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387779</guid><dc:creator><![CDATA[lodo2609]]></dc:creator><pubDate>Thu, 18 Oct 2007 10:52:48 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27; on Thu, 18 Oct 2007 11:00:35 GMT]]></title><description><![CDATA[<p>lodo2609 schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>wir möchten aus einem anderen Programm ein Bild kopieren, das Handle davon ermitteln wir mit Hilfe des Programms WinID. Wenn jemand eine andere Idee hat, sind wir für alles offen.</p>
</blockquote>
<p>Sehr schlechte Idee - so ein Handle ist nur innerhalb des jeweiligen Programms gültig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387786</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 18 Oct 2007 11:00:35 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27; on Thu, 18 Oct 2007 11:20:23 GMT]]></title><description><![CDATA[<blockquote>
<p>Sehr schlechte Idee - so ein Handle ist nur innerhalb des jeweiligen Programms gültig.</p>
</blockquote>
<p>Was meinst du? Das Handle ändert sich bei jedem Programmstart, das ist wohl ein Problem (das Auslesen bei bekanntem Handle funktioniert aber). Aber leider haben wir im Moment keine bessere Idee...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387797</guid><dc:creator><![CDATA[lodo2609]]></dc:creator><pubDate>Thu, 18 Oct 2007 11:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27; on Thu, 18 Oct 2007 11:29:52 GMT]]></title><description><![CDATA[<p>lodo2609 schrieb:</p>
<blockquote>
<p>Aber leider haben wir im Moment keine bessere Idee...</p>
</blockquote>
<p>schau mal in der msdn nach FindWindow und konsorten. damit kann man zur laufzeit handles zu fenstern finden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387803</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387803</guid><dc:creator><![CDATA[Captain Obvious]]></dc:creator><pubDate>Thu, 18 Oct 2007 11:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27; on Thu, 18 Oct 2007 11:55:12 GMT]]></title><description><![CDATA[<p>lodo2609 schrieb:</p>
<blockquote>
<blockquote>
<p>Sehr schlechte Idee - so ein Handle ist nur innerhalb des jeweiligen Programms gültig.</p>
</blockquote>
<p>Was meinst du? Das Handle ändert sich bei jedem Programmstart, das ist wohl ein Problem (das Auslesen bei bekanntem Handle funktioniert aber). Aber leider haben wir im Moment keine bessere Idee...</p>
</blockquote>
<p>Das Handle ist nur im Kontext von Programm 1 gültig - Programm 2 arbeitet in einem eigenständigen Adressbereich und sieht an der angegebenen Adresse nur Datenmüll.</p>
<p>(um mal einen Vergleich zu bringen: Du erhältst die Anschrift &quot;Marktstraße 5&quot; - kannst du mit der Angabe das zugehörige Haus finden?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387823</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387823</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 18 Oct 2007 11:55:12 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von &#x27;int&#x27; nach &#x27;void *&#x27; on Thu, 18 Oct 2007 12:22:58 GMT]]></title><description><![CDATA[<p>CStoll schrieb:</p>
<blockquote>
<p>Das Handle ist nur im Kontext von Programm 1 gültig - Programm 2 arbeitet in einem eigenständigen Adressbereich und sieht an der angegebenen Adresse nur Datenmüll.</p>
</blockquote>
<p>aber doch bei nicht bei (top-level?) hwnds.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387847</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387847</guid><dc:creator><![CDATA[cpt. obvious]]></dc:creator><pubDate>Thu, 18 Oct 2007 12:22:58 GMT</pubDate></item></channel></rss>