<?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[String.getlenght() geht nicht]]></title><description><![CDATA[<p>Hey.<br />
Bin am verzweifeln.<br />
Eigentlich wollte ich nur schnell die Länge eines Strings auslesen:</p>
<pre><code class="language-cpp">sTest = sDeinName.GetLength();
</code></pre>
<p>(Keine Sorge: sTest und sDeinName habe ich deklariert);</p>
<p>Aber nun kommt immer der Error:</p>
<blockquote>
<p>error C2593: 'operator =' is ambiguous</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/251661/string-getlenght-geht-nicht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 10:08:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/251661.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Oct 2009 12:17:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String.getlenght() geht nicht on Thu, 08 Oct 2009 12:17:54 GMT]]></title><description><![CDATA[<p>Hey.<br />
Bin am verzweifeln.<br />
Eigentlich wollte ich nur schnell die Länge eines Strings auslesen:</p>
<pre><code class="language-cpp">sTest = sDeinName.GetLength();
</code></pre>
<p>(Keine Sorge: sTest und sDeinName habe ich deklariert);</p>
<p>Aber nun kommt immer der Error:</p>
<blockquote>
<p>error C2593: 'operator =' is ambiguous</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1789637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1789637</guid><dc:creator><![CDATA[knappiknuppi]]></dc:creator><pubDate>Thu, 08 Oct 2009 12:17:54 GMT</pubDate></item><item><title><![CDATA[Reply to String.getlenght() geht nicht on Thu, 08 Oct 2009 12:22:48 GMT]]></title><description><![CDATA[<p>Was hat denn sTest für ein Typ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1789641</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1789641</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Thu, 08 Oct 2009 12:22:48 GMT</pubDate></item><item><title><![CDATA[Reply to String.getlenght() geht nicht on Thu, 08 Oct 2009 12:22:58 GMT]]></title><description><![CDATA[<p>std::string hat keine Methode GetLength - du benutzt also vermutlich eine selbstgebaute oder proprietäre Stringklasse. Damit weiß dann keiner, von welchem typ die Rückgabe von GetLength ist, und von welchem Typ sTest ist, hast du auch nicht angegeben. Vermutlich liegt folgendes vor: wenn T1 der Typ von sTest ist, und T2 der Rückgabetyp von GetLength, dann gibts keinen op=, der ein T2 einem T1 zuweist. Der Compiler sucht dann nach impliziten Konvertierungen für T2 (z.B. in T1 oder in ein int oder ein short oder...) und findet zwei (oder mehr), mit denen der op= funktionieren würde. Er kann sich nicht entscheiden welche er nehmen soll und genau das besagt die Fehlermeldung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1789643</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1789643</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 08 Oct 2009 12:22:58 GMT</pubDate></item><item><title><![CDATA[Reply to String.getlenght() geht nicht on Thu, 08 Oct 2009 12:36:55 GMT]]></title><description><![CDATA[<p>David_pb schrieb:</p>
<blockquote>
<p>Was hat denn sTest für ein Typ?</p>
</blockquote>
<p>ich verwende CStrings</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1789656</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1789656</guid><dc:creator><![CDATA[ichnochmal]]></dc:creator><pubDate>Thu, 08 Oct 2009 12:36:55 GMT</pubDate></item><item><title><![CDATA[Reply to String.getlenght() geht nicht on Thu, 08 Oct 2009 13:09:23 GMT]]></title><description><![CDATA[<p>ichnochmal schrieb:</p>
<blockquote>
<p>David_pb schrieb:</p>
<blockquote>
<p>Was hat denn sTest für ein Typ?</p>
</blockquote>
<p>ich verwende CStrings</p>
</blockquote>
<p>cstrings werden die teile genannt, die nichts mehr als nen char* sind^^<br />
die haben keine fkt oder member - also scheinst du irgendwas zu verwechseln...<br />
zeig doch mal ein wenig mehr quellcode!</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1789678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1789678</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Thu, 08 Oct 2009 13:09:23 GMT</pubDate></item><item><title><![CDATA[Reply to String.getlenght() geht nicht on Thu, 08 Oct 2009 13:24:32 GMT]]></title><description><![CDATA[<p>unskilled schrieb:</p>
<blockquote>
<p>cstrings werden die teile genannt, die nichts mehr als nen char* sind^^</p>
</blockquote>
<p>Du willst den Fragesteller wohl ärgern, <a href="http://msdn.microsoft.com/de-de/library/ms174288.aspx" rel="nofollow">oder</a>?</p>
<p>knappiknuppi, Du hast zu wenig Informationen geliefert. Diese kurzen Code-Schnippsel sind nicht zu gebrauchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1789689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1789689</guid><dc:creator><![CDATA[Sebastian Pizer]]></dc:creator><pubDate>Thu, 08 Oct 2009 13:24:32 GMT</pubDate></item><item><title><![CDATA[Reply to String.getlenght() geht nicht on Thu, 08 Oct 2009 13:27:56 GMT]]></title><description><![CDATA[<p>Sebastian Pizer schrieb:</p>
<blockquote>
<p>unskilled schrieb:</p>
<blockquote>
<p>cstrings werden die teile genannt, die nichts mehr als nen char* sind^^</p>
</blockquote>
<p>Du willst den Fragesteller wohl ärgern, <a href="http://msdn.microsoft.com/de-de/library/ms174288.aspx" rel="nofollow">oder</a>?</p>
<p>knappiknuppi, Du hast zu wenig Informationen geliefert. Diese kurzen Code-Schnippsel sind nicht zu gebrauchen.</p>
</blockquote>
<p>verdammt xD<br />
ich war mir auch sicher, CString schon mal gesehen zu haben - allerdings hat die google suche nach c++ cstring mich nicht bestätigt und dann war ich halt davon ausgegangen, dass er C-Strings meinte^^<br />
sry</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1789692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1789692</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Thu, 08 Oct 2009 13:27:56 GMT</pubDate></item></channel></rss>