<?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[Loadstring und Resource]]></title><description><![CDATA[<p>Hallo Ihr Lieben.</p>
<p>Ich habe mal ne Frage.<br />
Ich möchte in einen DLL Projekt die bisher hardgecodeten Texte in eine Stringtable auslagern.<br />
Ich lege also eine Resourse, Stringtable an und lade das Teil mit Loadstring:</p>
<pre><code>char resBuff[256];						LoadString(NULL,IDS_STRING101,resBuff,256);
</code></pre>
<p>Doch der Compiler motzt mich an, daß er IDS_STRING101 nicht finden kann.<br />
Gebe ich statt IDS_STRING101 die Resourse 101 an, ist der String leer.</p>
<p>In dem *.rc file sind auch schon Versionsinformationen die sauber mitkompiliert werden und die ich auch aufrufen kann, also kanns nicht dran liegen, daß er die resource Datei nicht findet, oder?</p>
<p>Binde ich die resource.h ein, motzt der Compiler trotzdem:</p>
<blockquote>
<p>Fehler 16 error C2065: 'IDS_STRING101': nichtdeklarierter Bezeichner</p>
</blockquote>
<p>Was mache ich noch falsch?<br />
Es ist ja offensichtlich, daß er den Bezeichner nicht findet...</p>
<p>Grüße Mondmann</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/216430/loadstring-und-resource</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 08:14:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/216430.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Jun 2008 06:54:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Loadstring und Resource on Tue, 24 Jun 2008 06:54:56 GMT]]></title><description><![CDATA[<p>Hallo Ihr Lieben.</p>
<p>Ich habe mal ne Frage.<br />
Ich möchte in einen DLL Projekt die bisher hardgecodeten Texte in eine Stringtable auslagern.<br />
Ich lege also eine Resourse, Stringtable an und lade das Teil mit Loadstring:</p>
<pre><code>char resBuff[256];						LoadString(NULL,IDS_STRING101,resBuff,256);
</code></pre>
<p>Doch der Compiler motzt mich an, daß er IDS_STRING101 nicht finden kann.<br />
Gebe ich statt IDS_STRING101 die Resourse 101 an, ist der String leer.</p>
<p>In dem *.rc file sind auch schon Versionsinformationen die sauber mitkompiliert werden und die ich auch aufrufen kann, also kanns nicht dran liegen, daß er die resource Datei nicht findet, oder?</p>
<p>Binde ich die resource.h ein, motzt der Compiler trotzdem:</p>
<blockquote>
<p>Fehler 16 error C2065: 'IDS_STRING101': nichtdeklarierter Bezeichner</p>
</blockquote>
<p>Was mache ich noch falsch?<br />
Es ist ja offensichtlich, daß er den Bezeichner nicht findet...</p>
<p>Grüße Mondmann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1534535</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1534535</guid><dc:creator><![CDATA[Mondmann]]></dc:creator><pubDate>Tue, 24 Jun 2008 06:54:56 GMT</pubDate></item><item><title><![CDATA[Reply to Loadstring und Resource on Tue, 24 Jun 2008 07:15:23 GMT]]></title><description><![CDATA[<p>Mondmann schrieb:</p>
<blockquote>
<p>Was mache ich noch falsch?</p>
</blockquote>
<p>Da Ansi C++ weder Ressourcen noch LoadString kennt: Falsches Unterforum gewählt (Tippe mal auf Windows API).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1534549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1534549</guid><dc:creator><![CDATA[asc]]></dc:creator><pubDate>Tue, 24 Jun 2008 07:15:23 GMT</pubDate></item><item><title><![CDATA[Reply to Loadstring und Resource on Tue, 24 Jun 2008 07:42:03 GMT]]></title><description><![CDATA[<p>Sorry.<br />
Admin, bitte verschieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1534568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1534568</guid><dc:creator><![CDATA[Mondmann]]></dc:creator><pubDate>Tue, 24 Jun 2008 07:42:03 GMT</pubDate></item><item><title><![CDATA[Reply to Loadstring und Resource on Sat, 28 Jun 2008 10:53:22 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" 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/1537405</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1537405</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 28 Jun 2008 10:53:22 GMT</pubDate></item><item><title><![CDATA[Reply to Loadstring und Resource on Sat, 28 Jun 2008 15:03:50 GMT]]></title><description><![CDATA[<p>resource.h hast Du nicht in included!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1537512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1537512</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 28 Jun 2008 15:03:50 GMT</pubDate></item></channel></rss>