<?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[Probleme bei Parametern in Anführungszeichen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bekomme bei Befehlsparamtern, die in Anführungszeichen stehen immer eine Fehlermeldung der Art &quot; Konvertierung des Parameters 1 von 'const char [12]' in ... nicht möglich&quot;.</p>
<p>Dies tritt z.B. hier auf:<br />
CFile datei( &quot;C:\\demo.txt&quot;, CFile::modeCreate | CFile::modeWrite );</p>
<p>oder bei diesem Befehl:<br />
str.Format(&quot;%d&quot;,m_intSlider1)</p>
<p>Kann hier jemand weiterhelfen??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147909/probleme-bei-parametern-in-anführungszeichen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 16:58:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147909.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 May 2006 15:40:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme bei Parametern in Anführungszeichen on Sun, 21 May 2006 15:40:48 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bekomme bei Befehlsparamtern, die in Anführungszeichen stehen immer eine Fehlermeldung der Art &quot; Konvertierung des Parameters 1 von 'const char [12]' in ... nicht möglich&quot;.</p>
<p>Dies tritt z.B. hier auf:<br />
CFile datei( &quot;C:\\demo.txt&quot;, CFile::modeCreate | CFile::modeWrite );</p>
<p>oder bei diesem Befehl:<br />
str.Format(&quot;%d&quot;,m_intSlider1)</p>
<p>Kann hier jemand weiterhelfen??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1062188</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1062188</guid><dc:creator><![CDATA[Hilfesuchender Newbie]]></dc:creator><pubDate>Sun, 21 May 2006 15:40:48 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei Parametern in Anführungszeichen on Sun, 21 May 2006 17:56:57 GMT]]></title><description><![CDATA[<p>Bitte...kennt da keiner eine Antwort? Liegt vielleicht an nem vergessenen Header oder so. Ich bräuchte die Lösung dringend bis morgen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> , wäre also für schnelle Hilfe sehr sehr dankbar <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="🙂"
    /> <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/1062286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1062286</guid><dc:creator><![CDATA[Immer noch Hilfesuchender]]></dc:creator><pubDate>Sun, 21 May 2006 17:56:57 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei Parametern in Anführungszeichen on Sun, 21 May 2006 18:20:50 GMT]]></title><description><![CDATA[<p>Etwas merkwürdig ist das schon. In was muss es denn umgewandelt werden? Manchmal (z.B. bei COM) wird BSTR (=LPCWSTR) erwartet.</p>
<p>Kurze Stichworte: ANSI, UNICODE</p>
<p>Schau Dir mal folgende Funktion an: CString.AllocSysString();</p>
<p><a href="http://www.flounder.com/cstring.htm" rel="nofollow">http://www.flounder.com/cstring.htm</a></p>
<pre><code class="language-cpp">CString s;
s = ... ; // whatever
BSTR b = s.AllocSysString();
</code></pre>
<p>Siehe auch <a href="http://www.henkessoft.de/C++/MFC/mfc_einsteigerbuch_kapitel3.htm" rel="nofollow">http://www.henkessoft.de/C++/MFC/mfc_einsteigerbuch_kapitel3.htm</a></p>
<p>Ich hoffe, dass dies weiter hilft. Wenn nein, bitte komplette Fehlermeldung posten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1062300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1062300</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Sun, 21 May 2006 18:20:50 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei Parametern in Anführungszeichen on Sun, 21 May 2006 19:16:31 GMT]]></title><description><![CDATA[<p>Aus Henkesoft habe ich eben dieses Beispiel übernommen...<br />
dann kommt die Meldung</p>
<p>Fehler 2 error C2664: 'CFile::CFile(LPCTSTR,UINT)': Konvertierung des Parameters 1 von 'const char [12]' in 'LPCTSTR' nicht möglich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1062336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1062336</guid><dc:creator><![CDATA[Hilfesuchender Newbie]]></dc:creator><pubDate>Sun, 21 May 2006 19:16:31 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei Parametern in Anführungszeichen on Sun, 21 May 2006 19:27:21 GMT]]></title><description><![CDATA[<p>Hilfesuchender Newbie schrieb:</p>
<blockquote>
<p>CFile datei( &quot;C:\\demo.txt&quot;, CFile::modeCreate | CFile::modeWrite );<br />
oder bei diesem Befehl:<br />
str.Format(&quot;%d&quot;,m_intSlider1)</p>
</blockquote>
<p>Die MFC verwendet die TCHAR-Varianten der Methoden. Du musst also folgendes schreiben:</p>
<pre><code class="language-cpp">CFile datei(_T(&quot;C:\\demo.txt&quot;), CFile::modeCreate | CFile::modeWrite );
// bzw.
str.Format(_T(&quot;%d&quot;), m_intSlider1)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1062346</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1062346</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 21 May 2006 19:27:21 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei Parametern in Anführungszeichen on Sun, 21 May 2006 19:44:10 GMT]]></title><description><![CDATA[<p>Jetzt gehts....vielen Dank <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="🙂"
    /> <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/1062360</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1062360</guid><dc:creator><![CDATA[Hilfesuchender Newbie]]></dc:creator><pubDate>Sun, 21 May 2006 19:44:10 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei Parametern in Anführungszeichen on Sun, 21 May 2006 20:43:11 GMT]]></title><description><![CDATA[<p>Du kannst auch mal probieren bei den Projektstandards Multibyte einzustellen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1062391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1062391</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Sun, 21 May 2006 20:43:11 GMT</pubDate></item></channel></rss>