<?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[String kopieren]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich hab noch ein Problem:</p>
<p>Ich muss einen Teil eines CString kopieren:</p>
<p>int CFWLoaderDlg::StrToHex(CString sLine, int const iLen)<br />
{<br />
CString sHex1, sHex2;</p>
<p>sHex1= &quot;0x&quot;;<br />
strncpy(sHex2,sLine,iLen);</p>
<p>return 0;<br />
}</p>
<p>In Delphi geht das mit Copy(sLine, 1, iLen);</p>
<p>SLine = Sourcestring<br />
1 = index<br />
iLen = Count</p>
<p>strncpy funktioniert nicht, wegen der Typenkonvertierung. Hab es auch schon mit static_cast und reinterpret_cast versucht.</p>
<p>Gibt es für CString etwas ähnliches, wie in Delphi Copy?</p>
<p>Danke für Eure Hilfe.</p>
<p>Grüsse<br />
xthing</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159006/string-kopieren</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 21:47:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159006.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Sep 2006 09:38:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String kopieren on Mon, 11 Sep 2006 09:38:40 GMT]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich hab noch ein Problem:</p>
<p>Ich muss einen Teil eines CString kopieren:</p>
<p>int CFWLoaderDlg::StrToHex(CString sLine, int const iLen)<br />
{<br />
CString sHex1, sHex2;</p>
<p>sHex1= &quot;0x&quot;;<br />
strncpy(sHex2,sLine,iLen);</p>
<p>return 0;<br />
}</p>
<p>In Delphi geht das mit Copy(sLine, 1, iLen);</p>
<p>SLine = Sourcestring<br />
1 = index<br />
iLen = Count</p>
<p>strncpy funktioniert nicht, wegen der Typenkonvertierung. Hab es auch schon mit static_cast und reinterpret_cast versucht.</p>
<p>Gibt es für CString etwas ähnliches, wie in Delphi Copy?</p>
<p>Danke für Eure Hilfe.</p>
<p>Grüsse<br />
xthing</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135010</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135010</guid><dc:creator><![CDATA[xthing]]></dc:creator><pubDate>Mon, 11 Sep 2006 09:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to String kopieren on Mon, 11 Sep 2006 10:22:02 GMT]]></title><description><![CDATA[<p>Guck dir einfach mal die Memberfunktionen von CString an:<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstring_class_members.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstring_class_members.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135027</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Mon, 11 Sep 2006 10:22:02 GMT</pubDate></item><item><title><![CDATA[Reply to String kopieren on Mon, 11 Sep 2006 11:40:55 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=1" rel="nofollow">MFC (Visual C++)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135081</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135081</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 11 Sep 2006 11:40:55 GMT</pubDate></item></channel></rss>