<?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[Backslash in der Pfadangabe]]></title><description><![CDATA[<p>Hallo,<br />
aus meiner Datenbank wird folgendes ausgelesen:</p>
<p>CString pfad = &quot;C:\Bilder\MeinBild.bmp&quot;;</p>
<p>um aber in C++ diese Datei tatsächlich auslesen zu können,<br />
muss man die den einfachen &quot;\&quot; in einen Doppelten umwandeln &quot;\&quot;.<br />
Gib es eine einfache Funktion oder eine andere Möglichkeit dies zu<br />
realisieren.</p>
<p>Thanks a lot !</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/5995/backslash-in-der-pfadangabe</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 17:51:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/5995.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Jun 2003 08:39:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Backslash in der Pfadangabe on Tue, 03 Jun 2003 08:39:00 GMT]]></title><description><![CDATA[<p>Hallo,<br />
aus meiner Datenbank wird folgendes ausgelesen:</p>
<p>CString pfad = &quot;C:\Bilder\MeinBild.bmp&quot;;</p>
<p>um aber in C++ diese Datei tatsächlich auslesen zu können,<br />
muss man die den einfachen &quot;\&quot; in einen Doppelten umwandeln &quot;\&quot;.<br />
Gib es eine einfache Funktion oder eine andere Möglichkeit dies zu<br />
realisieren.</p>
<p>Thanks a lot !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29146</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29146</guid><dc:creator><![CDATA[ThomasZ]]></dc:creator><pubDate>Tue, 03 Jun 2003 08:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to Backslash in der Pfadangabe on Tue, 03 Jun 2003 08:42:00 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/topic,39458.html" rel="nofollow">warum in strings zu \ wird</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/29147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29147</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Tue, 03 Jun 2003 08:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Backslash in der Pfadangabe on Tue, 03 Jun 2003 14:35:00 GMT]]></title><description><![CDATA[<p>das ist mir jetzt schon alles klar, nur brauch ich trotzdem<br />
den doppelten Backslash, weil ich sonst eine Fehlermeldung bekomme.<br />
Es steht dann nähmlich in der Anweisung:</p>
<p>CString path = (&quot;C:\test.bmp&quot;);<br />
HBITMAP hBmp6_6 = (HBITMAP)::LoadImage(NULL,path _6, IMAGE_BITMAP,0 ........</p>
<p>anstatt richtigerweise</p>
<p>CString path = (&quot;C:\\test.bmp&quot;);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29148</guid><dc:creator><![CDATA[ThomasZ]]></dc:creator><pubDate>Tue, 03 Jun 2003 14:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to Backslash in der Pfadangabe on Tue, 03 Jun 2003 14:42:00 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Suchst du das hier ?</p>
<p>Aus der MSDN:</p>
<p>CString::Replace<br />
int Replace( TCHAR chOld, TCHAR chNew );</p>
<p>int Replace( LPCTSTR lpszOld, LPCTSTR lpszNew );</p>
<p>Example</p>
<p>//First example, with old and new equal in length.</p>
<p>CString strZap(&quot;C--&quot;);<br />
int n = strZap.Replace('-', '+');<br />
ASSERT(n == 2);<br />
ASSERT(strZap == &quot;C++&quot;);</p>
<p>//Second example, old and new are of different lengths.</p>
<p>CString strBang(&quot;Everybody likes ice hockey&quot;);<br />
n = strBang.Replace(&quot;hockey&quot;, &quot;golf&quot;);<br />
ASSERT(n == 1);<br />
n = strBang.Replace(&quot;likes&quot;, &quot;plays&quot;);<br />
ASSERT(n == 1);<br />
n = strBang.Replace(&quot;ice&quot;, NULL);<br />
ASSERT(n == 1);<br />
ASSERT(strBang == &quot;Everybody plays golf&quot;);</p>
<p>// note that you now have an extra space in your<br />
// sentence. To remove the extra space, include it<br />
// in the string to be replaced, i.e.,&quot;ice &quot;.</p>
<p>Tschüss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29149</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Tue, 03 Jun 2003 14:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Backslash in der Pfadangabe on Tue, 03 Jun 2003 14:53:00 GMT]]></title><description><![CDATA[<p>Wenn in den CString die Zuweisung des Pfads erfolgt musst du einen Doppelten &quot;\&quot; machen. Wenn der Pfad bereits im CString drinsteht dann nicht.<br />
Warum, hat dEUs schon gepostet.</p>
<p>[ Dieser Beitrag wurde am 03.06.2003 um 16:54 Uhr von <strong>Unix-Tom</strong> editiert. ]</p>
<p>[ Dieser Beitrag wurde am 04.06.2003 um 06:18 Uhr von <strong>Unix-Tom</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29150</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Tue, 03 Jun 2003 14:53:00 GMT</pubDate></item></channel></rss>