<?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[Hmm int  in string umwandeln  ! Fehler !]]></title><description><![CDATA[<p>Hallo<br />
Bei diesem Code :</p>
<pre><code>long int memor = get_mem_total();
   stringstream ss;
   ss&lt;&lt;memor;
   string memory_id;
   ss&gt;&gt;memory_id;
   textctrl2-&gt;SetValue(memory_id);
</code></pre>
<p>kommt dieser Fehler !</p>
<pre><code>/home/huseyin/SystemInfs/base.cpp|51|Fehler: keine passende Funktion für Aufruf von »wxTextCtrl::SetValue(std::string&amp;)«|
/home/huseyin/SystemInfs/base.cpp|51|Anmerkung: Kandidat ist:|
/usr/include/wx-2.8/wx/textctrl.h|303|Anmerkung: virtual void wxTextCtrlBase::SetValue(const wxString&amp;)|
/usr/include/wx-2.8/wx/textctrl.h|303|Anmerkung:   keine bekannte Umwandlung für Argument 1 von »std::string {aka std::basic_string&lt;char&gt;}« nach »const wxString&amp;«|
||=== Build finished: 4 errors, 0 warnings ===|
Hmm habe es ja in string umgewandelt arbeite mit wxWidgets sollte aber 
unwichtig sein!
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/297344/hmm-int-in-string-umwandeln-fehler</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 12:01:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/297344.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Dec 2011 00:47:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hmm int  in string umwandeln  ! Fehler ! on Sun, 25 Dec 2011 00:47:24 GMT]]></title><description><![CDATA[<p>Hallo<br />
Bei diesem Code :</p>
<pre><code>long int memor = get_mem_total();
   stringstream ss;
   ss&lt;&lt;memor;
   string memory_id;
   ss&gt;&gt;memory_id;
   textctrl2-&gt;SetValue(memory_id);
</code></pre>
<p>kommt dieser Fehler !</p>
<pre><code>/home/huseyin/SystemInfs/base.cpp|51|Fehler: keine passende Funktion für Aufruf von »wxTextCtrl::SetValue(std::string&amp;)«|
/home/huseyin/SystemInfs/base.cpp|51|Anmerkung: Kandidat ist:|
/usr/include/wx-2.8/wx/textctrl.h|303|Anmerkung: virtual void wxTextCtrlBase::SetValue(const wxString&amp;)|
/usr/include/wx-2.8/wx/textctrl.h|303|Anmerkung:   keine bekannte Umwandlung für Argument 1 von »std::string {aka std::basic_string&lt;char&gt;}« nach »const wxString&amp;«|
||=== Build finished: 4 errors, 0 warnings ===|
Hmm habe es ja in string umgewandelt arbeite mit wxWidgets sollte aber 
unwichtig sein!
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2160787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2160787</guid><dc:creator><![CDATA[Cho++]]></dc:creator><pubDate>Sun, 25 Dec 2011 00:47:24 GMT</pubDate></item><item><title><![CDATA[Reply to Hmm int  in string umwandeln  ! Fehler ! on Sun, 25 Dec 2011 01:54:27 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">textctrl2-&gt;SetValue(wsString( memory_id.begin(), memory_id.end() ));
</code></pre>
<p>oder so ähnlich - je nach dem, was für konstruktoren wsString bereitstellt...</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2160794</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2160794</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sun, 25 Dec 2011 01:54:27 GMT</pubDate></item><item><title><![CDATA[Reply to Hmm int  in string umwandeln  ! Fehler ! on Sun, 25 Dec 2011 08:59:58 GMT]]></title><description><![CDATA[<p>Schau doch einfach in die Dokumentation. Ein bischen selbstständig musst du bei GUI-Frameworks schon sein, sonst fragst du jeden Tag.</p>
<p>Also ...</p>
<pre><code class="language-cpp">textctrl2-&gt;SetValue(wxString::Format(&quot;%d&quot;, get_mem_total()));
</code></pre>
<p>Sollte machen was du willst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2160809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2160809</guid><dc:creator><![CDATA[Ethon_notloggedin]]></dc:creator><pubDate>Sun, 25 Dec 2011 08:59:58 GMT</pubDate></item><item><title><![CDATA[Reply to Hmm int  in string umwandeln  ! Fehler ! on Sun, 25 Dec 2011 10:20:57 GMT]]></title><description><![CDATA[<p>Wenn dein Compiler schon entsprechenden C++11 Support hat, könntest du außerdem gleich std::to_string verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2160818</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2160818</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sun, 25 Dec 2011 10:20:57 GMT</pubDate></item><item><title><![CDATA[Reply to Hmm int  in string umwandeln  ! Fehler ! on Sun, 25 Dec 2011 10:50:40 GMT]]></title><description><![CDATA[<p>Jetzt kommt dieser Fehler :</p>
<pre><code>/home/huseyin/SystemInfs/base.cpp|51|Fehler: keine passende Funktion für Aufruf von »wxString::Format(const char [3], long int)«|
/home/huseyin/SystemInfs/base.cpp|51|Anmerkung: Kandidat ist:|
/usr/include/wx-2.8/wx/string.h|1208|Anmerkung: static wxString wxString::Format(const wxChar*, ...)|
/usr/include/wx-2.8/wx/string.h|1208|Anmerkung:   keine bekannte Umwandlung für Argument 1 von »const char [3]« nach »const wxChar* {aka const wchar_t*}«|
||=== Build finished: 4 errors, 0 warnings ===|
</code></pre>
<p>Also ich such ja nach einer funktion bei der man in TextCtrl direkt integer ausgeben kann aber finden tu ich nix ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2160823</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2160823</guid><dc:creator><![CDATA[Cho++]]></dc:creator><pubDate>Sun, 25 Dec 2011 10:50:40 GMT</pubDate></item><item><title><![CDATA[Reply to Hmm int  in string umwandeln  ! Fehler ! on Sun, 25 Dec 2011 10:55:56 GMT]]></title><description><![CDATA[<p>Die Fehlermeldung sagt dass dein const char* und in const wxChar* konvertierbar ist und dass wxChar ein wchar_t ist.<br />
wchar_t ist ein Unicode-String und bedeutet dass du vor den String ein L hängen musst damit der Compiler den richtigen String generiert (L&quot;Hallo Welt&quot;).</p>
<blockquote>
<p>Wenn dein Compiler schon entsprechenden C++11 Support hat, könntest du außerdem gleich std::to_string verwenden.</p>
</blockquote>
<p>in std::string konvertieren und dann gleich in das nächste Stringformat? Besser nicht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2160827</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2160827</guid><dc:creator><![CDATA[Ethon]]></dc:creator><pubDate>Sun, 25 Dec 2011 10:55:56 GMT</pubDate></item><item><title><![CDATA[Reply to Hmm int  in string umwandeln  ! Fehler ! on Sun, 25 Dec 2011 11:08:58 GMT]]></title><description><![CDATA[<p>Also wie soll ich bei der Variable ein L vorne dran machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2160829</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2160829</guid><dc:creator><![CDATA[Cho++]]></dc:creator><pubDate>Sun, 25 Dec 2011 11:08:58 GMT</pubDate></item><item><title><![CDATA[Reply to Hmm int  in string umwandeln  ! Fehler ! on Sun, 25 Dec 2011 11:25:03 GMT]]></title><description><![CDATA[<p>Ja, der String selbst soll ein Widechar-String sein.</p>
<pre><code class="language-cpp">textctrl2-&gt;SetValue(wxString::Format(L&quot;%d&quot;, get_mem_total()));
</code></pre>
<p>Am Besten packst du alle Strings, die du mit wxWidgets benutzt, in ein</p>
<pre><code class="language-cpp">wxT()
</code></pre>
<p>ein, dann wird das automatisch angepasst.<br />
Also:</p>
<pre><code class="language-cpp">textctrl2-&gt;SetValue(wxString::Format(wxT(&quot;%d&quot;), get_mem_total()));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2160830</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2160830</guid><dc:creator><![CDATA[Ethon]]></dc:creator><pubDate>Sun, 25 Dec 2011 11:25:03 GMT</pubDate></item><item><title><![CDATA[Reply to Hmm int  in string umwandeln  ! Fehler ! on Sun, 25 Dec 2011 11:49:34 GMT]]></title><description><![CDATA[<p>Vielen Dank hat geklappt hab jetzt ander Fehler aber hat nichts mehr mit dem zu tun.</p>
<p>Liebe Grüsse</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2160835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2160835</guid><dc:creator><![CDATA[Cho++]]></dc:creator><pubDate>Sun, 25 Dec 2011 11:49:34 GMT</pubDate></item></channel></rss>