<?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[BSTR nach CString??]]></title><description><![CDATA[<p>Hi,<br />
Habe die folgende fehler code:</p>
<p><strong>error C2679: binary '&gt;&gt;' : no operator found which takes a right-hand operand of type 'BSTR' (or there is no acceptable conversion)</strong></p>
<p>Wie kann ich BSTR nach CString konvertieren?(Habe VC++ 8.0)<br />
Ich möchte das in einem Serialization function benutzen. <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/topic/169585/bstr-nach-cstring</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 21:37:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169585.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Jan 2007 16:43:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BSTR nach CString?? on Sat, 06 Jan 2007 16:43:11 GMT]]></title><description><![CDATA[<p>Hi,<br />
Habe die folgende fehler code:</p>
<p><strong>error C2679: binary '&gt;&gt;' : no operator found which takes a right-hand operand of type 'BSTR' (or there is no acceptable conversion)</strong></p>
<p>Wie kann ich BSTR nach CString konvertieren?(Habe VC++ 8.0)<br />
Ich möchte das in einem Serialization function benutzen. <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/1204441</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1204441</guid><dc:creator><![CDATA[allany2005]]></dc:creator><pubDate>Sat, 06 Jan 2007 16:43:11 GMT</pubDate></item><item><title><![CDATA[Reply to BSTR nach CString?? on Sat, 06 Jan 2007 17:10:13 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CString cStr(bStr);
</code></pre>
<p>!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1204461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1204461</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 06 Jan 2007 17:10:13 GMT</pubDate></item><item><title><![CDATA[Reply to BSTR nach CString?? on Sat, 06 Jan 2007 17:21:00 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<pre><code class="language-cpp">CString cStr(bStr);
</code></pre>
<p>!?</p>
</blockquote>
<p>Habe die folgenden fehler:</p>
<p>error C2064: term does not evaluate to a function taking 1 arguments</p>
<pre><code>ar &gt;&gt; cStr(m_string);
</code></pre>
<p>m_string ist BSTR.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1204477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1204477</guid><dc:creator><![CDATA[allany2005]]></dc:creator><pubDate>Sat, 06 Jan 2007 17:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to BSTR nach CString?? on Sat, 06 Jan 2007 17:30:11 GMT]]></title><description><![CDATA[<p>allany2005 schrieb:</p>
<blockquote>
<pre><code>ar &gt;&gt; cStr(m_string);
</code></pre>
</blockquote>
<p>Was soll den das sein? Was hat das mit MFC zu tun? Was ist &quot;&gt;&gt;&quot;??? und was ist ar?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1204484</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1204484</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 06 Jan 2007 17:30:11 GMT</pubDate></item><item><title><![CDATA[Reply to BSTR nach CString?? on Sat, 06 Jan 2007 17:32:25 GMT]]></title><description><![CDATA[<p>Es tut mir leid, habe es nun geschafft, das war mein fehler.<br />
Danke für die antwort.</p>
<pre><code>ar &gt;&gt; CString(m_string);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1204487</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1204487</guid><dc:creator><![CDATA[allany2005]]></dc:creator><pubDate>Sat, 06 Jan 2007 17:32:25 GMT</pubDate></item><item><title><![CDATA[Reply to BSTR nach CString?? on Sat, 06 Jan 2007 17:35:37 GMT]]></title><description><![CDATA[<p>Ich benutze das in einem Automation Server Project(MFC 8.0) <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/1204495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1204495</guid><dc:creator><![CDATA[allany2005]]></dc:creator><pubDate>Sat, 06 Jan 2007 17:35:37 GMT</pubDate></item><item><title><![CDATA[Reply to BSTR nach CString?? on Sat, 06 Jan 2007 21:07:38 GMT]]></title><description><![CDATA[<p>allany2005 schrieb:</p>
<blockquote>
<p>Es tut mir leid, habe es nun geschafft, das war mein fehler.<br />
Danke für die antwort.</p>
<pre><code>ar &gt;&gt; CString(m_string);
</code></pre>
</blockquote>
<p>Dieser Code macht keinen Sinn. Wenn ar ein CArchive ist und Du jetzt Daten aus dem CArchive lädst, dann gehen die Daten aus dem Cstring verloren. In dem m_string landet nichts.</p>
<pre><code class="language-cpp">CString str;
ar &gt;&gt; str;
::SysFreeString(m_string);
m_string = str.AllocSysAlloc();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1204669</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1204669</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 06 Jan 2007 21:07:38 GMT</pubDate></item></channel></rss>