<?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[hae, bin ich bloed ?]]></title><description><![CDATA[<pre><code class="language-cpp">_tcsncpy_s(fm.szFaceName, strFontName.data(), LF_FACESIZE);
</code></pre>
<p>in der einen klasse - no errors or warnings</p>
<pre><code class="language-cpp">_tcsncpy_s(ti.lpszText, strTip.c_str(), strTip.length());
</code></pre>
<p>in einer anderen klasse - &quot;error C2660: 'wcsncpy_s' : function does not take 3 arguments&quot;<br />
sei es unicode oder multibyte compilation</p>
<p>was soll der bloedsinn ?<br />
_tcsncpy_s nimmt drei argumente an und bekommt auch drei - beide klassen werden compiliert, bei dem einen keine fehler bei den anderen schon</p>
<p>hae</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/172214/hae-bin-ich-bloed</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 17:13:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/172214.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Feb 2007 13:11:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to hae, bin ich bloed ? on Fri, 02 Feb 2007 13:11:40 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">_tcsncpy_s(fm.szFaceName, strFontName.data(), LF_FACESIZE);
</code></pre>
<p>in der einen klasse - no errors or warnings</p>
<pre><code class="language-cpp">_tcsncpy_s(ti.lpszText, strTip.c_str(), strTip.length());
</code></pre>
<p>in einer anderen klasse - &quot;error C2660: 'wcsncpy_s' : function does not take 3 arguments&quot;<br />
sei es unicode oder multibyte compilation</p>
<p>was soll der bloedsinn ?<br />
_tcsncpy_s nimmt drei argumente an und bekommt auch drei - beide klassen werden compiliert, bei dem einen keine fehler bei den anderen schon</p>
<p>hae</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221731</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Fri, 02 Feb 2007 13:11:40 GMT</pubDate></item><item><title><![CDATA[Reply to hae, bin ich bloed ? on Fri, 02 Feb 2007 13:16:49 GMT]]></title><description><![CDATA[<p>data() gibt imho was anderes zurück als c_str().</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221735</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Fri, 02 Feb 2007 13:16:49 GMT</pubDate></item><item><title><![CDATA[Reply to hae, bin ich bloed ? on Fri, 02 Feb 2007 13:30:42 GMT]]></title><description><![CDATA[<p>Was für einen Typ hat denn 'strTip'? Wenn du für UNICODE Compilerst, benötigst du einen wstring.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/20761">@phlox</a>: inhaltlich gibt es einen Unterschied, aber technisch liefern beide Methoden einen const char* <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221744</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221744</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 02 Feb 2007 13:30:42 GMT</pubDate></item><item><title><![CDATA[Reply to hae, bin ich bloed ? on Fri, 02 Feb 2007 13:46:17 GMT]]></title><description><![CDATA[<p>in beiden faellen ist der source string ein &quot;DString&quot; welches ein define ist zwischen std::string und std::wstring<br />
data() und c_str() sind das selbe, war durch rumprobieren nur irtendwie auf das c_str gelandet</p>
<p>hab das nun so geloest:</p>
<pre><code class="language-cpp">TCHAR *str = new TCHAR[strTip.length()+1];
SecureZeroMemory(str, strTip.length()+1);
_tcsncpy_s(str, strTip.length()+1, strTip.c_str(), strTip.length());
ti.lpszText = str;
</code></pre>
<p>trotzdem finde ich das sehr merkwuerdig</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221752</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221752</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Fri, 02 Feb 2007 13:46:17 GMT</pubDate></item><item><title><![CDATA[Reply to hae, bin ich bloed ? on Fri, 02 Feb 2007 14:24:35 GMT]]></title><description><![CDATA[<p>data() und c_str() sind nicht das Gleiche. c_str() ist auf jedem Fall Nullterminiert, data() nicht unbedingt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221777</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221777</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 02 Feb 2007 14:24:35 GMT</pubDate></item><item><title><![CDATA[Reply to hae, bin ich bloed ? on Fri, 02 Feb 2007 15:07:03 GMT]]></title><description><![CDATA[<p>es geht aber sowohl als auch nicht - bei beiden schluckts der compiler nicht /=</p>
<p>btw<br />
fm = CHARFORMAT2<br />
ti = TOOLINFO</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221807</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221807</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Fri, 02 Feb 2007 15:07:03 GMT</pubDate></item></channel></rss>