<?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[Versuch in VARIANT-Speicher zu verschieben]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche ein VARIANT vom Typ VT_VARIANT | VT_ARRAY mit der Funktion (von National Instruments LabVIEW)</p>
<pre><code class="language-cpp">MoveBlock(const void* src, void* dest, size_t size);
</code></pre>
<p>zu verschieben.<br />
Hier mein Bsp.:</p>
<pre><code class="language-cpp">void CAQSIRCamServerCtrl::GetImageInfo(VARIANT* InfoBuffer, ImageInfoStruc* m_pwInfoBuffer)
{
    AFX_MANAGE_STATE(AfxGetStaticModuleState());

    // TODO: Add your dispatch handler code here
    if(InfoBuffer-&gt;vt == VT_VARIANT | VT_ARRAY)
        MoveBlock(((UHandle*)m_pwInfoBuffer), ((UHandle*)InfoBuffer-&gt;parray-&gt;pvData), m_pwInfoBuffer-&gt;wStructSize);
}
</code></pre>
<p>Ich bin mir mit dem Pointer auf die VARIANT Daten nicht sicher.</p>
<pre><code class="language-cpp">InfoBuffer-&gt;parray-&gt;pvData
</code></pre>
<p>Ist das meine Adresse auf das erste Element?<br />
Die Funktion wird ohne Fehler beendet, aber die Daten in meinem Zielarray sind leer.</p>
<p>Danke für eure Hilfe <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/topic/295909/versuch-in-variant-speicher-zu-verschieben</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 06:42:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/295909.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Nov 2011 09:42:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Versuch in VARIANT-Speicher zu verschieben on Thu, 24 Nov 2011 09:42:05 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche ein VARIANT vom Typ VT_VARIANT | VT_ARRAY mit der Funktion (von National Instruments LabVIEW)</p>
<pre><code class="language-cpp">MoveBlock(const void* src, void* dest, size_t size);
</code></pre>
<p>zu verschieben.<br />
Hier mein Bsp.:</p>
<pre><code class="language-cpp">void CAQSIRCamServerCtrl::GetImageInfo(VARIANT* InfoBuffer, ImageInfoStruc* m_pwInfoBuffer)
{
    AFX_MANAGE_STATE(AfxGetStaticModuleState());

    // TODO: Add your dispatch handler code here
    if(InfoBuffer-&gt;vt == VT_VARIANT | VT_ARRAY)
        MoveBlock(((UHandle*)m_pwInfoBuffer), ((UHandle*)InfoBuffer-&gt;parray-&gt;pvData), m_pwInfoBuffer-&gt;wStructSize);
}
</code></pre>
<p>Ich bin mir mit dem Pointer auf die VARIANT Daten nicht sicher.</p>
<pre><code class="language-cpp">InfoBuffer-&gt;parray-&gt;pvData
</code></pre>
<p>Ist das meine Adresse auf das erste Element?<br />
Die Funktion wird ohne Fehler beendet, aber die Daten in meinem Zielarray sind leer.</p>
<p>Danke für eure Hilfe <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/2148106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2148106</guid><dc:creator><![CDATA[abrissbirne]]></dc:creator><pubDate>Thu, 24 Nov 2011 09:42:05 GMT</pubDate></item><item><title><![CDATA[Reply to Versuch in VARIANT-Speicher zu verschieben on Thu, 24 Nov 2011 10:23:12 GMT]]></title><description><![CDATA[<p>Die Frage geht eher in Richtung &quot;Wie verwende ich die LabView API richtig&quot; statt dass sie etwas mit der Sprache C++ an sich zu tun hat. LabView kenne ich nicht. Von daher kann ich Dir da auch nicht helfen.</p>
<p>Lies die Doku zu VARIANT.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2148124</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2148124</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Thu, 24 Nov 2011 10:23:12 GMT</pubDate></item><item><title><![CDATA[Reply to Versuch in VARIANT-Speicher zu verschieben on Thu, 24 Nov 2011 11:28:27 GMT]]></title><description><![CDATA[<p>krümelkacker schrieb:</p>
<blockquote>
<p>Die Frage geht eher in Richtung &quot;Wie verwende ich die LabView API richtig&quot; statt dass sie etwas mit der Sprache C++ an sich zu tun hat. LabView kenne ich nicht. Von daher kann ich Dir da auch nicht helfen.</p>
<p>Lies die Doku zu VARIANT.</p>
</blockquote>
<p>Funtkioniert auch nit mit memcopy...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2148158</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2148158</guid><dc:creator><![CDATA[abrissbirne]]></dc:creator><pubDate>Thu, 24 Nov 2011 11:28:27 GMT</pubDate></item></channel></rss>