<?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[Typenumwandlung]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich bin gerade dabei ein Programm von C# zu C++ zu portieren.<br />
Nun macht mir eine Codezeile in C# ein Problem:</p>
<p>// Zur Info: IntPtr hRequest;</p>
<p>LINEDEVSPECIFIC_STRUCT linedevspecific_struct1 = (LINEDEVSPECIFIC_STRUCT) Marshal.PtrToStructure(hRequest, typeof(LINEDEVSPECIFIC_STRUCT));</p>
<p>Wie kann ich diese Zeile nach C++ (nicht C++/CLI) portieren?<br />
Betrifft indirekt das Thema TAPI/SMDR.</p>
<p>Danke und lieben Gruß</p>
<p>Thomas</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/197630/typenumwandlung</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 16:08:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/197630.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Nov 2007 22:17:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Typenumwandlung on Mon, 12 Nov 2007 22:17:01 GMT]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich bin gerade dabei ein Programm von C# zu C++ zu portieren.<br />
Nun macht mir eine Codezeile in C# ein Problem:</p>
<p>// Zur Info: IntPtr hRequest;</p>
<p>LINEDEVSPECIFIC_STRUCT linedevspecific_struct1 = (LINEDEVSPECIFIC_STRUCT) Marshal.PtrToStructure(hRequest, typeof(LINEDEVSPECIFIC_STRUCT));</p>
<p>Wie kann ich diese Zeile nach C++ (nicht C++/CLI) portieren?<br />
Betrifft indirekt das Thema TAPI/SMDR.</p>
<p>Danke und lieben Gruß</p>
<p>Thomas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1402158</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1402158</guid><dc:creator><![CDATA[Sophie3000]]></dc:creator><pubDate>Mon, 12 Nov 2007 22:17:01 GMT</pubDate></item><item><title><![CDATA[Reply to Typenumwandlung on Tue, 13 Nov 2007 07:35:10 GMT]]></title><description><![CDATA[<p>IMHO ist es nur ein Pointer Zugriff auf hRequest.</p>
<pre><code class="language-cpp">LINEDEVSPECIFIC_STRUCT linedevspecific_struct1 = *reinterpret_cast&lt;LINEDEVSPECIFIC_STRUCT*&gt;(hRequest);
</code></pre>
<p>Wenn Du sagst woher Du hRequest hast, kann ich Dir mehr sagen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1402236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1402236</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 13 Nov 2007 07:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to Typenumwandlung on Tue, 13 Nov 2007 14:58:07 GMT]]></title><description><![CDATA[<p>Hallo Martin,</p>
<p>danke erstmal für die Antwort. Hier ein Snippet:</p>
<p>IntPtr ptr1 = new IntPtr();</p>
<p>...</p>
<p>SmdrPrint.LINEMESSAGE_STRUCT linemessage_struct1 = new LINEMESSAGE_STRUCT();</p>
<p>...</p>
<p>ptr1 = (IntPtr) dictionary1[linemessage_struct1.dwParam1]; // dwParam1 = int</p>
<p>ptr1 wird dann an eine Funktion übergeben. = hRequest</p>
<p>Wie würde ich denn &quot;PtrToStringAnsi&quot; nach C++ übersetzen?</p>
<p>Danke und mfG</p>
<p>Thomas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1402548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1402548</guid><dc:creator><![CDATA[Sophie3000]]></dc:creator><pubDate>Tue, 13 Nov 2007 14:58:07 GMT</pubDate></item></channel></rss>