<?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[Linker Operand muss ein L-Wert sein ?]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin neu bei VC++, habe aber einige Erfahrung mit Delphi, auch mit der Win-API.</p>
<p>Nun bastle ich an dem Filer-Sample (von Visual Studio 6.0) herum und versuche mal, den Font der Listboxen zu ändern.</p>
<p>Als erstes scheitere ich an einer (für mich etwas kryptischen) Compiler-Fehlermeldung:</p>
<p>error C2106: '=' : Linker Operand muss ein L-Wert sein</p>
<pre><code>LOGFONT    lf;
   HDC        hDC;
   HGDIOBJ    hOldFont;
   TEXTMETRIC tm;
   TCHAR myFaceName[LF_FACESIZE] = &quot;Courier&quot;; 
...
   lf.lfHeight = 11 * GetDeviceCaps(hDC, LOGPIXELSY) / 72;
   lf.lfPitchAndFamily = DEFAULT_PITCH | FF_MODERN;
   lf.lfFaceName = myFaceName;
</code></pre>
<p>Die Compiler-Fehlermeldung kommt zu der letzten Code-Zeile.</p>
<p>Was bedeutet die Fehlermeldung ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/61201/linker-operand-muss-ein-l-wert-sein</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 15:42:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/61201.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Jan 2004 15:43:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Linker Operand muss ein L-Wert sein ? on Mon, 12 Jan 2004 15:43:31 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin neu bei VC++, habe aber einige Erfahrung mit Delphi, auch mit der Win-API.</p>
<p>Nun bastle ich an dem Filer-Sample (von Visual Studio 6.0) herum und versuche mal, den Font der Listboxen zu ändern.</p>
<p>Als erstes scheitere ich an einer (für mich etwas kryptischen) Compiler-Fehlermeldung:</p>
<p>error C2106: '=' : Linker Operand muss ein L-Wert sein</p>
<pre><code>LOGFONT    lf;
   HDC        hDC;
   HGDIOBJ    hOldFont;
   TEXTMETRIC tm;
   TCHAR myFaceName[LF_FACESIZE] = &quot;Courier&quot;; 
...
   lf.lfHeight = 11 * GetDeviceCaps(hDC, LOGPIXELSY) / 72;
   lf.lfPitchAndFamily = DEFAULT_PITCH | FF_MODERN;
   lf.lfFaceName = myFaceName;
</code></pre>
<p>Die Compiler-Fehlermeldung kommt zu der letzten Code-Zeile.</p>
<p>Was bedeutet die Fehlermeldung ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/434582</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/434582</guid><dc:creator><![CDATA[mr_data1]]></dc:creator><pubDate>Mon, 12 Jan 2004 15:43:31 GMT</pubDate></item><item><title><![CDATA[Reply to Linker Operand muss ein L-Wert sein ? on Mon, 12 Jan 2004 15:47:59 GMT]]></title><description><![CDATA[<p>Du kannst einem Array nichts zuweisen. Benutze _tcscpy.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/434587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/434587</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 12 Jan 2004 15:47:59 GMT</pubDate></item><item><title><![CDATA[Reply to Linker Operand muss ein L-Wert sein ? on Mon, 12 Jan 2004 16:18:42 GMT]]></title><description><![CDATA[<p>Oh ja, danke!</p>
<p>Das war wohl ein Anfängerfehler. <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="😉"
    /><br />
Aber ich komme von Pascal/Delphi...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/434624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/434624</guid><dc:creator><![CDATA[mr_data]]></dc:creator><pubDate>Mon, 12 Jan 2004 16:18:42 GMT</pubDate></item><item><title><![CDATA[Reply to Linker Operand muss ein L-Wert sein ? on Mon, 12 Jan 2004 16:28:03 GMT]]></title><description><![CDATA[<p>mr_data schrieb:</p>
<blockquote>
<p>Aber ich komme von Pascal/Delphi...</p>
</blockquote>
<p>Es ist nie zu spät <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Grüßle Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/434638</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/434638</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Mon, 12 Jan 2004 16:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to Linker Operand muss ein L-Wert sein ? on Mon, 12 Jan 2004 20:38:32 GMT]]></title><description><![CDATA[<p>ich komme nicht freiwillig....</p>
<p>Will mir zwar kein vorschnelles Urteil bilden, aber den Objektinspektor aus der Delphi-IDE vermisse ich doch sehr.</p>
<p>Was da in VC++ mit den Eigenschaften-Fenstern geht, ist doch sehr dürftig<br />
und Listboxen finde ich da überhaupt nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/434958</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/434958</guid><dc:creator><![CDATA[mr_data]]></dc:creator><pubDate>Mon, 12 Jan 2004 20:38:32 GMT</pubDate></item></channel></rss>