<?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[char* Parameter in Funktion ist auf einmal &amp;quot;&#x5C;&#x5C;&amp;quot;]]></title><description><![CDATA[<p>Hi</p>
<p>Ich hab ein Problem mit einer Funktion von mir.</p>
<p>Ich habe folgende Funktion:</p>
<pre><code class="language-cpp">char* ReadCorrespondingValue( const char *pName )
{
...
}
</code></pre>
<p>und ich rufe diese Funktion so wie hier auf:</p>
<pre><code class="language-cpp">SG-&gt;Cells[0][1] = ReadCorrespondingValue( &quot;TestWert&quot; );
</code></pre>
<p>Wenn ich jetz debugge und pName überprüfe, stehen in pName nur zwei Backslashes.</p>
<p>Dieser Aufruf klappt dagegen:</p>
<pre><code class="language-cpp">char Name[] = &quot;TestWert&quot;;
SG-&gt;Cells[0][1] = ReadCorrespondingValue( Name );
</code></pre>
<p>Nun frage ich mich wieso, bzw. wie bekomme ich es hin dass die 1. Methode auch funktioniert?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/203620/char-parameter-in-funktion-ist-auf-einmal-quot-quot</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 11:34:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/203620.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Jan 2008 15:26:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to char* Parameter in Funktion ist auf einmal &amp;quot;&#x5C;&#x5C;&amp;quot; on Thu, 24 Jan 2008 15:29:05 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>Ich hab ein Problem mit einer Funktion von mir.</p>
<p>Ich habe folgende Funktion:</p>
<pre><code class="language-cpp">char* ReadCorrespondingValue( const char *pName )
{
...
}
</code></pre>
<p>und ich rufe diese Funktion so wie hier auf:</p>
<pre><code class="language-cpp">SG-&gt;Cells[0][1] = ReadCorrespondingValue( &quot;TestWert&quot; );
</code></pre>
<p>Wenn ich jetz debugge und pName überprüfe, stehen in pName nur zwei Backslashes.</p>
<p>Dieser Aufruf klappt dagegen:</p>
<pre><code class="language-cpp">char Name[] = &quot;TestWert&quot;;
SG-&gt;Cells[0][1] = ReadCorrespondingValue( Name );
</code></pre>
<p>Nun frage ich mich wieso, bzw. wie bekomme ich es hin dass die 1. Methode auch funktioniert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1442864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1442864</guid><dc:creator><![CDATA[RedPuma]]></dc:creator><pubDate>Thu, 24 Jan 2008 15:29:05 GMT</pubDate></item><item><title><![CDATA[Reply to char* Parameter in Funktion ist auf einmal &amp;quot;&#x5C;&#x5C;&amp;quot; on Thu, 24 Jan 2008 15:28:51 GMT]]></title><description><![CDATA[<p>Wenn ich raten müsste, liegt der Fehler bei einem der drei Punkte im Inneren der Funktion (bei welchem, bin ich mir nicht sicher :D).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1442866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1442866</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 24 Jan 2008 15:28:51 GMT</pubDate></item></channel></rss>