<?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[Eingabeproblem]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgenden String in C:</p>
<pre><code>WCHAR Path[]=L&quot;\\??\\C:\\TEST.SYS&quot;;
</code></pre>
<p>Nun mach ich das so:</p>
<pre><code>WCHAR daPath[1024];
        WCHAR Pathinput[1024];
        printf(&quot;Bitte den vollstaendigen Pfad angeben:\n&quot;);
        scanf(&quot;%s&quot;,&amp;Pathinput);
        snprintf(daPath,1022,&quot;\\??\\%s&quot;,Pathinput);
</code></pre>
<p>Aber egal was ich dann für &quot;Pathinput&quot; eingebe, ob C:\TEST.SYS oder C:\\TEST.SYS, es kommt nicht dasselbe raus...Ich hätte eine Vermutung dass das mit der Speicherreservierung der Arrays zusammenhängt, aber ich weiß nicht weiter. Kann mir jemand helfen?</p>
<p>Danke Im Voraus<br />
Toddy</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/202563/eingabeproblem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 22:58:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/202563.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Jan 2008 23:36:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eingabeproblem on Sat, 12 Jan 2008 23:36:37 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgenden String in C:</p>
<pre><code>WCHAR Path[]=L&quot;\\??\\C:\\TEST.SYS&quot;;
</code></pre>
<p>Nun mach ich das so:</p>
<pre><code>WCHAR daPath[1024];
        WCHAR Pathinput[1024];
        printf(&quot;Bitte den vollstaendigen Pfad angeben:\n&quot;);
        scanf(&quot;%s&quot;,&amp;Pathinput);
        snprintf(daPath,1022,&quot;\\??\\%s&quot;,Pathinput);
</code></pre>
<p>Aber egal was ich dann für &quot;Pathinput&quot; eingebe, ob C:\TEST.SYS oder C:\\TEST.SYS, es kommt nicht dasselbe raus...Ich hätte eine Vermutung dass das mit der Speicherreservierung der Arrays zusammenhängt, aber ich weiß nicht weiter. Kann mir jemand helfen?</p>
<p>Danke Im Voraus<br />
Toddy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1435698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435698</guid><dc:creator><![CDATA[Toddy]]></dc:creator><pubDate>Sat, 12 Jan 2008 23:36:37 GMT</pubDate></item><item><title><![CDATA[Reply to Eingabeproblem on Sat, 12 Jan 2008 23:40:53 GMT]]></title><description><![CDATA[<p>es wird wohl eher daran liegen, dass du mit wide characters arbeitest und<br />
dementsprechend auch</p>
<pre><code class="language-cpp">wscanf()
</code></pre>
<p>und</p>
<pre><code class="language-cpp">wsnprintf
</code></pre>
<p>verwenden solltest <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/1435699</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435699</guid><dc:creator><![CDATA[sothis_]]></dc:creator><pubDate>Sat, 12 Jan 2008 23:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to Eingabeproblem on Sat, 12 Jan 2008 23:56:21 GMT]]></title><description><![CDATA[<p>Hallo sothis_,</p>
<p>Danke für deine Antwort. Ich hab das jetzt so:</p>
<pre><code>WCHAR daPath[1024];
        WCHAR Pathinput[1024];
        printf(&quot;Bitte den vollstaendigen Pfad angeben:\n&quot;);
        wscanf(&quot;%s&quot;,&amp;Pathinput);
        snwprintf(daPath,1021,L&quot;\\??\\%s&quot;,Pathinput);
</code></pre>
<p>wsnprintf hat nicht funktioniert also hab ich in Google snwprintf gefunden. Aber anscheinend funktioniert das immer noch nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1435700</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435700</guid><dc:creator><![CDATA[Toddy]]></dc:creator><pubDate>Sat, 12 Jan 2008 23:56:21 GMT</pubDate></item><item><title><![CDATA[Reply to Eingabeproblem on Sun, 13 Jan 2008 09:38:37 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">wscanf(L&quot;%s&quot;,&amp;Pathinput);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1435752</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1435752</guid><dc:creator><![CDATA[sothis_]]></dc:creator><pubDate>Sun, 13 Jan 2008 09:38:37 GMT</pubDate></item><item><title><![CDATA[Reply to Eingabeproblem on Sun, 13 Jan 2008 18:43:25 GMT]]></title><description><![CDATA[<p>Vielen Dank, ich wusste, dass ich da irgendetwas vergessen hab...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1436061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1436061</guid><dc:creator><![CDATA[Toddy]]></dc:creator><pubDate>Sun, 13 Jan 2008 18:43:25 GMT</pubDate></item></channel></rss>