<?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&#x2F;Text als const oder #define?]]></title><description><![CDATA[<p>Wie kann man String/Text als const oder #define in header einbinden. ich will einfach ein paar standardzeichenketten im Code dann einsetzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163057/string-text-als-const-oder-define</link><generator>RSS for Node</generator><lastBuildDate>Fri, 31 Jul 2026 01:30:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163057.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Oct 2006 15:58:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Wed, 25 Oct 2006 16:12:39 GMT]]></title><description><![CDATA[<p>Wie kann man String/Text als const oder #define in header einbinden. ich will einfach ein paar standardzeichenketten im Code dann einsetzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161125</guid><dc:creator><![CDATA[Rio1]]></dc:creator><pubDate>Wed, 25 Oct 2006 16:12:39 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Thu, 26 Oct 2006 13:35:24 GMT]]></title><description><![CDATA[<p>im .h File:</p>
<pre><code class="language-cpp">extern CString const BLA;
</code></pre>
<p>im .cpp File:</p>
<pre><code class="language-cpp">CString const BLA = &quot;BLUBBER&quot;;
</code></pre>
<p>Geht natürlich auch mit char const *. Von #define würde ich bei Konstanten die Finger lassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161912</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Thu, 26 Oct 2006 13:35:24 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Thu, 26 Oct 2006 16:09:28 GMT]]></title><description><![CDATA[<p>ähm das const kommt vor den Variablentyp</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162049</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Thu, 26 Oct 2006 16:09:28 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Thu, 26 Oct 2006 17:10:26 GMT]]></title><description><![CDATA[<p>Und was soll das denn bitte darstellen? das ist doch mal derbst unschön ... und define auch ... wenn de feste strings hast, kannst du bsw ne resource dafür nutzen und dann kannst de die acuh gaanz leicht ändern ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162091</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 26 Oct 2006 17:10:26 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 27 Oct 2006 07:44:17 GMT]]></title><description><![CDATA[<p>toller comment, aber keine ahnung was du damit meinst und wie man das macht..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162356</guid><dc:creator><![CDATA[Rio_1]]></dc:creator><pubDate>Fri, 27 Oct 2006 07:44:17 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 27 Oct 2006 08:14:05 GMT]]></title><description><![CDATA[<p>In den Resourcen gibt es den StringTable und bei CString die Funktion LoadString.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162379</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162379</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Fri, 27 Oct 2006 08:14:05 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 27 Oct 2006 08:33:41 GMT]]></title><description><![CDATA[<p>kann jemand hierzu mal ein kleines Codebsp. schreiben. kann mir immernoch nicht vorstellen wie man das ohne viel Aufwand (meinetwegen mit einer Stringtable) in der Resource händelt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162394</guid><dc:creator><![CDATA[Rio1]]></dc:creator><pubDate>Fri, 27 Oct 2006 08:33:41 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 27 Oct 2006 08:42:30 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstring.3a3a.loadstring.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstring.3a3a.loadstring.asp</a><br />
Kleiner Tip am Rande: Irgendwann hast du den Newbi-Bonus verspielt und wenn du dann nicht zeigst, dass du wenigstens was in der MSDN nachgeschlagen hast und vielleicht mal Code von einem Eigenversuch bringst, dann verlieren die Leute schnell die Lust zu helfen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162403</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162403</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Fri, 27 Oct 2006 08:42:30 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 27 Oct 2006 08:53:20 GMT]]></title><description><![CDATA[<p>ok ok, ich hatte LoadString und StringTable gar nicht beides im Zusammenhang gesehen....</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162421</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162421</guid><dc:creator><![CDATA[Rio1]]></dc:creator><pubDate>Fri, 27 Oct 2006 08:53:20 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 27 Oct 2006 15:04:50 GMT]]></title><description><![CDATA[<p><div class="plugin-markdown"><input type="checkbox" id="checkbox100666" checked="true" /><label for="checkbox100666">oder LPCPSTR brauche?</label></div></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162599</guid><dc:creator><![CDATA[Rio_1]]></dc:creator><pubDate>Fri, 27 Oct 2006 15:04:50 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 27 Oct 2006 18:16:50 GMT]]></title><description><![CDATA[<p>Dann greif auf den Globalen Namespace zu und nimm die LoadString Funktionen die net von der MFC gekapselt wurden -.-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162766</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Fri, 27 Oct 2006 18:16:50 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 03 Nov 2006 15:19:51 GMT]]></title><description><![CDATA[<p>was muss für hInstance angegeben werden??</p>
<p>::LoadString(HINSTANCE,...);</p>
<p>und wie lässt sich der nBufferMax als 4 Parameter bestimmen?</p>
<p>Gibt es keine einfachere Variante auf Stringconst. zurückzugreifen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1167776</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1167776</guid><dc:creator><![CDATA[Rio1]]></dc:creator><pubDate>Fri, 03 Nov 2006 15:19:51 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 03 Nov 2006 16:03:46 GMT]]></title><description><![CDATA[<p>Das MSDN schrieb:</p>
<blockquote>
<pre><code>Parameters

hInstance
[in] Handle to an instance of the module whose executable file contains the
string resource. To get the handle to the application itself, use
GetModuleHandle(NULL).
uID
[in] Specifies the integer identifier of the string to be loaded.
lpBuffer
[out] Pointer to the buffer to receive the string. 
nBufferMax
[in] Specifies the size of the buffer, in TCHARs. This refers to bytes for
ANSI versions of the function or WCHARs for Unicode versions. The string is
truncated and NULL terminated if it is longer than the number of characters
specified.
</code></pre>
</blockquote>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/strings/stringreference/stringfunctions/loadstring.asp" rel="nofollow">Quelle</a></p>
<p>Vielleicht mal lesen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1167805</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1167805</guid><dc:creator><![CDATA[gbhb]]></dc:creator><pubDate>Fri, 03 Nov 2006 16:03:46 GMT</pubDate></item><item><title><![CDATA[Reply to String&#x2F;Text als const oder #define? on Fri, 03 Nov 2006 16:19:21 GMT]]></title><description><![CDATA[<p>ich hab hier eVC++, da ist die MSDN n bischen anders geschrieben... Hab das dort nicht so klar rausgelesen.</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1167819</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1167819</guid><dc:creator><![CDATA[Rio1]]></dc:creator><pubDate>Fri, 03 Nov 2006 16:19:21 GMT</pubDate></item></channel></rss>