<?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[CommandLine mit und ohne &amp;quot;~&amp;quot;]]></title><description><![CDATA[<p>Ich finds schon wieder nicht...</p>
<p>Wenn ich mit einem File DragAndDrop auf meine exe gehe klappts,<br />
wenn ich jedoch mein File über Doppelklick losschicke wird der exe die Anführungsstrichen mitgeliefert???</p>
<pre><code class="language-cpp">void CDebugServerApp::AnalyzeCommandLine(void)
{
   char   seps[]   = &quot;- ,\t\n&quot;;
   char   *token;

   ::AfxMessageBox(m_lpCmdLine); // Hier sehe ich was übergeben wird :-)
   // Getting the command-line info

}
</code></pre>
<p>Ausgabe DragAndDrop:<br />
Pfad<br />
Ausgabe Doppelklick:<br />
&quot;Pfad&quot;</p>
<p>Muß ich die &quot;&quot; jetzt händisch rausnehmen oder kann ich was umformatieren??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/49887/commandline-mit-und-ohne-quot-quot</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 20:59:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/49887.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Sep 2003 09:44:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CommandLine mit und ohne &amp;quot;~&amp;quot; on Wed, 24 Sep 2003 09:44:53 GMT]]></title><description><![CDATA[<p>Ich finds schon wieder nicht...</p>
<p>Wenn ich mit einem File DragAndDrop auf meine exe gehe klappts,<br />
wenn ich jedoch mein File über Doppelklick losschicke wird der exe die Anführungsstrichen mitgeliefert???</p>
<pre><code class="language-cpp">void CDebugServerApp::AnalyzeCommandLine(void)
{
   char   seps[]   = &quot;- ,\t\n&quot;;
   char   *token;

   ::AfxMessageBox(m_lpCmdLine); // Hier sehe ich was übergeben wird :-)
   // Getting the command-line info

}
</code></pre>
<p>Ausgabe DragAndDrop:<br />
Pfad<br />
Ausgabe Doppelklick:<br />
&quot;Pfad&quot;</p>
<p>Muß ich die &quot;&quot; jetzt händisch rausnehmen oder kann ich was umformatieren??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/359502</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/359502</guid><dc:creator><![CDATA[sarasne]]></dc:creator><pubDate>Wed, 24 Sep 2003 09:44:53 GMT</pubDate></item><item><title><![CDATA[Reply to CommandLine mit und ohne &amp;quot;~&amp;quot; on Wed, 24 Sep 2003 11:45:21 GMT]]></title><description><![CDATA[<blockquote>
<p>Wenn ich mit einem File DragAndDrop auf meine exe gehe klappts,<br />
wenn ich jedoch mein File über Doppelklick losschicke wird der exe die Anführungsstrichen mitgeliefert???</p>
</blockquote>
<p>Is logisch, liegt einfach daran, dass man wissen will, wann ein Parameter zu Ende ist, wenn ein Pfad übergeben wird. Da lange Dateinamen nun auch Leerzeichen enthalten können, wäre sonst nicht eindeutig, ob es sich um Pfad- oder Parametertrennungsleerzeichen handelt.</p>
<blockquote>
<p>Muß ich die &quot;&quot; jetzt händisch rausnehmen oder kann ich was umformatieren??</p>
</blockquote>
<p>Was das für ne Frage <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Vgl. mit:<br />
<em>&quot;Also wenn ich den Berg hinunter fahre, wird mein Rad automatisch schneller, hinauf aber nicht. Muss ich da wirklich in die Pedalen treten oder gibts andere Vorschläge?</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/359576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/359576</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Wed, 24 Sep 2003 11:45:21 GMT</pubDate></item><item><title><![CDATA[Reply to CommandLine mit und ohne &amp;quot;~&amp;quot; on Wed, 24 Sep 2003 11:49:04 GMT]]></title><description><![CDATA[<p>Also händisch...</p>
<p>War mir nicht sicher, ob die &quot;&quot; nicht durch irgendwelche Umformatierungen entstanden sind.<br />
Aber mit der Erklärung macht das wieder Sinn...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/359579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/359579</guid><dc:creator><![CDATA[sarasne]]></dc:creator><pubDate>Wed, 24 Sep 2003 11:49:04 GMT</pubDate></item><item><title><![CDATA[Reply to CommandLine mit und ohne &amp;quot;~&amp;quot; on Wed, 24 Sep 2003 12:14:31 GMT]]></title><description><![CDATA[<p>Wäre doch etwas für die FAQ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/359602</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/359602</guid><dc:creator><![CDATA[sarasne]]></dc:creator><pubDate>Wed, 24 Sep 2003 12:14:31 GMT</pubDate></item></channel></rss>