<?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[Kompatibilität von nativem wchar_t in VS 2005]]></title><description><![CDATA[<p>Servus,</p>
<p>habe ein kleines Problem bei der Verwendung von w_char.</p>
<p>Ich bin dabei, ein älteres Projekt (mit Verwendung der MFC) auf Visual Studio 2005 hochzuziehen.</p>
<p>Dummerweise ist hier nun w_char ein nativer Typ. Dass beisst sich ein wenig mit einigen Bibliotheken, die ich verwende. Ich kann das zwar abstellen und das alte Verhalten erzwingen, aber dann motzt der Linker, dass er die MFC Bibliotheken nicht mehr einbinden kann.</p>
<p>Hat jemand vielleicht eine (möglichst vernünftige) Lösung oder hat ähnliche Probleme?</p>
<p>/dirk</p>
<p>Edit: Überschrift korrigiert</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/167627/kompatibilität-von-nativem-wchar_t-in-vs-2005</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 16:57:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/167627.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Dec 2006 08:52:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kompatibilität von nativem wchar_t in VS 2005 on Wed, 13 Dec 2006 12:58:43 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>habe ein kleines Problem bei der Verwendung von w_char.</p>
<p>Ich bin dabei, ein älteres Projekt (mit Verwendung der MFC) auf Visual Studio 2005 hochzuziehen.</p>
<p>Dummerweise ist hier nun w_char ein nativer Typ. Dass beisst sich ein wenig mit einigen Bibliotheken, die ich verwende. Ich kann das zwar abstellen und das alte Verhalten erzwingen, aber dann motzt der Linker, dass er die MFC Bibliotheken nicht mehr einbinden kann.</p>
<p>Hat jemand vielleicht eine (möglichst vernünftige) Lösung oder hat ähnliche Probleme?</p>
<p>/dirk</p>
<p>Edit: Überschrift korrigiert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191027</guid><dc:creator><![CDATA[Dirk Schnelle]]></dc:creator><pubDate>Wed, 13 Dec 2006 12:58:43 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilität von nativem wchar_t in VS 2005 on Wed, 13 Dec 2006 09:24:47 GMT]]></title><description><![CDATA[<p>ich kenn nur &quot;wchar_t&quot; [in der MSDN suche find ich auch nichts ueber &quot;w_char&quot;]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191044</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Wed, 13 Dec 2006 09:24:47 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilität von nativem wchar_t in VS 2005 on Wed, 13 Dec 2006 09:50:24 GMT]]></title><description><![CDATA[<p>Richtig. Habe mich leider verschreiben.</p>
<p>Es geht um wchar_t und die Option /Zc:wchar_t-</p>
<p>/dirk</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191060</guid><dc:creator><![CDATA[Dirk Schnelle]]></dc:creator><pubDate>Wed, 13 Dec 2006 09:50:24 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilität von nativem wchar_t in VS 2005 on Wed, 13 Dec 2006 09:54:49 GMT]]></title><description><![CDATA[<p>welche Visual Studio 2005 version hast du ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191064</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Wed, 13 Dec 2006 09:54:49 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilität von nativem wchar_t in VS 2005 on Wed, 13 Dec 2006 10:04:43 GMT]]></title><description><![CDATA[<p>Hbe mal die Info kopiert:</p>
<p>Microsoft Visual Studio 2005<br />
Version 8.0.50727.42 (RTM.050727-4200)<br />
Microsoft .NET Framework<br />
Version 2.0.50727</p>
<p>Installierte Edition: Professional</p>
<p>Microsoft Visual Basic 2005 77891-009-0000007-41189<br />
Microsoft Visual Basic 2005</p>
<p>Microsoft Visual C# 2005 77891-009-0000007-41189<br />
Microsoft Visual C# 2005</p>
<p>Microsoft Visual C++ 2005 77891-009-0000007-41189<br />
Microsoft Visual C++ 2005</p>
<p>Microsoft Visual J# 2005 77891-009-0000007-41189<br />
Microsoft Visual J# 2005</p>
<p>Microsoft Visual Web Developer 2005 77891-009-0000007-41189<br />
Microsoft Visual Web Developer 2005</p>
<p>Crystal Report AAC60-H0CSA4B-U700045<br />
Crystal Reports für Visual Studio 2005</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191072</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191072</guid><dc:creator><![CDATA[Dirk Schnelle]]></dc:creator><pubDate>Wed, 13 Dec 2006 10:04:43 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilität von nativem wchar_t in VS 2005 on Wed, 13 Dec 2006 10:45:22 GMT]]></title><description><![CDATA[<p>/Zc:wchar_t schaltet halt natives wchar_t ein. Hat schon MSVC7.1 gehabt. Was ist daran jetzt so mystisch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191091</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Wed, 13 Dec 2006 10:45:22 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilität von nativem wchar_t in VS 2005 on Wed, 13 Dec 2006 10:50:35 GMT]]></title><description><![CDATA[<p>Daran ist nichts mystisch. Die Bedeutung des Schalters ist mir auch klar. Darum ging es mir auch nicht.</p>
<p>Ich will halt meine alten Bibliotheken, die wchar_t* als Paramter bzw. Rückgabewert haben, vernünftig aufrufen können.</p>
<p>/dirk</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191095</guid><dc:creator><![CDATA[Dirk Schnelle]]></dc:creator><pubDate>Wed, 13 Dec 2006 10:50:35 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilität von nativem wchar_t in VS 2005 on Wed, 13 Dec 2006 11:34:04 GMT]]></title><description><![CDATA[<p>ich fragte nur nach der version da es ja sein konnte das du die express installiert hast #gg</p>
<p>kann du mal genau auffuehren was der linker schreibt ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1191129</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191129</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Wed, 13 Dec 2006 11:34:04 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilität von nativem wchar_t in VS 2005 on Wed, 13 Dec 2006 11:49:52 GMT]]></title><description><![CDATA[<p>Hier mal ein Beispiel:</p>
<p>Aus der Header-Datei der Bibliothek:</p>
<pre><code class="language-cpp">DLL_API const TCHAR* catFnameToHhsDir( const TCHAR* fname );
</code></pre>
<p>Mein Code:</p>
<pre><code class="language-cpp">CString pathToUser;
pathToUser.Format(_T(&quot;%s.usr&quot;), catFnameToHhsDir(userName));
</code></pre>
<p>userName ist ebenfalls CString.</p>
<p>Ausgabe des Linkers:</p>
<pre><code>... : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;__declspec(dllimport) wchar_t const * __cdecl catFnameToHhsDir(wchar_t const *)&quot; (__imp_?catFnameToHhsDir@@YAPB_WPB_W@Z)&quot; in Funktion &quot;__unwind$76548&quot;.
</code></pre>
<p>Als Lösungsmöglichkeit, kann ich natürlich die Header-Datei umdefinieren in</p>
<pre><code class="language-cpp">DLL_API const unsigned int* catFnameToHhsDir( const unsigned short* fname );
</code></pre>
<p>Nur dann bekomme ich natürlich Ärger mit dem CString Geraffel.</p>
<p>Bei Verwendung des /Zc:wchar_t Schalters gibt es dann solche Meldungen:</p>
<pre><code>...: error LNK2001: Nicht aufgelöstes externes Symbol &quot;&quot;public: void __cdecl CWnd::SetWindowTextW(unsigned short const *)&quot; (?SetWindowTextW@CWnd@@QAAXPBG@Z)&quot;.
...
... : error LNK2001: Nicht aufgelöstes externes Symbol &quot;&quot;__declspec(dllimport) public: class ATL::CStringT&lt;unsigned short,class StrTraitMFC_DLL&lt;unsigned short,class ATL::ChTraitsOS&lt;unsigned short&gt; &gt; &gt; __cdecl ATL::CStringT&lt;unsigned short,class StrTraitMFC_DLL&lt;unsigned short,class ATL::ChTraitsOS&lt;unsigned short&gt; &gt; &gt;::Left(int)const &quot; (__imp_?Left@?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsOS@G@ATL@@@@@ATL@@QBA?AV12@H@Z)&quot;.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1191140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1191140</guid><dc:creator><![CDATA[Dirk Schnelle]]></dc:creator><pubDate>Wed, 13 Dec 2006 11:49:52 GMT</pubDate></item></channel></rss>