<?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[_wtof überprüfen]]></title><description><![CDATA[<p>Ich möchte einen CString zu einem double konvertieren, bis jetzt mache ich das ganze mit _wtof(CString), kann ich irgendwie überprüfen ob tatsächlich eine Zahl eingegeben wurde?</p>
<p>mfg, Johannes</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/286111/_wtof-überprüfen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 21 Aug 2026 01:51:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/286111.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 May 2011 18:01:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to _wtof überprüfen on Tue, 03 May 2011 18:01:43 GMT]]></title><description><![CDATA[<p>Ich möchte einen CString zu einem double konvertieren, bis jetzt mache ich das ganze mit _wtof(CString), kann ich irgendwie überprüfen ob tatsächlich eine Zahl eingegeben wurde?</p>
<p>mfg, Johannes</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2058015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2058015</guid><dc:creator><![CDATA[jonnybx]]></dc:creator><pubDate>Tue, 03 May 2011 18:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to _wtof überprüfen on Tue, 03 May 2011 18:21:38 GMT]]></title><description><![CDATA[<p>MSDN hat mir gerade Folgendes ins Ohr geflüstert:</p>
<blockquote>
<p>The return value is 0 (for atoi, _atoi64, _wtoi, and _wtoi64), 0L (for atol and _wtol), or 0.0 (for atof and _wtof) if the input cannot be converted to a value of that type.</p>
</blockquote>
<p>Das bedeutet für dich:</p>
<pre><code class="language-cpp">if (_wtof(CString) != 0)
    cout &lt;&lt; &quot;yay!&quot;;
</code></pre>
<p>Grüße,<br />
Rewind.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2058021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2058021</guid><dc:creator><![CDATA[*Rewind*]]></dc:creator><pubDate>Tue, 03 May 2011 18:21:38 GMT</pubDate></item></channel></rss>