<?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[error: changes meaning of &#96;HDC&#x27; from &#96;typedef struct HDC__*HDC&#x27;]]></title><description><![CDATA[<p>hi,</p>
<p>ich hab versucht die Beispiele von <a href="http://www.flipcode.com/articles/article_win32skins.shtml" rel="nofollow">diesem</a> Tutorial zu übersetzen (letztes Beispiel).<br />
Ein Codeausschnitt:</p>
<pre><code class="language-cpp">class CSkin
  {

    // --------------------------------------------------------------------------
    // the skin window procedure, where the class
    // will handle WM_PAINT and WM_LBUTTONDOWN automatically.
    // --------------------------------------------------------------------------
    friend LRESULT CALLBACK SkinWndProc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam);

    private:

      // the associated window handle
      HWND      m_hWnd;

      // the old window procedure
      WNDPROC   m_OldWndProc;

      // skin region
      HRGN      m_rgnSkin;

      // the internal skin device context handle
      HDC       m_dcSkin;

      // bitmap and old bitmap from the device context
      HBITMAP   m_hBmp, m_hOldBmp;

      // skin dimensions
      int       m_iWidth, m_iHeight;

      // on|off toggle
      bool      m_bEnabled;

      // tell the class if it has a window subclassed.
      bool      m_bHooked;

      // skin retrieval helper
      bool      GetSkinData(int iSkinRegion, int iSkinBitmap);

    public:

      // ----------------------------------------------------------------------------
      // constructor 1 - use it when you have not already created the app window.
      // this one will not subclass automatically, you must call Hook() to subclass.
      // will throw an exception if unable to initialize skin from resource.
      // ----------------------------------------------------------------------------

      CSkin(int iSkinRegion, int iSkinBitmap);

      // ----------------------------------------------------------------------------
      // constructor 2 - use it when you have already created the app window.
      // this one will subclass the window automatically.
      // will throw an exception if unable to initialize skin from resource.
      // ----------------------------------------------------------------------------

      CSkin(HWND hWnd, int iSkinRegion, int iSkinBitmap);

      // ----------------------------------------------------------------------------
      // destructor - will free allocated resources.
      // ----------------------------------------------------------------------------

      virtual ~CSkin();

      // ----------------------------------------------------------------------------
      // subclass a window.
      // ----------------------------------------------------------------------------

      bool    Hook(HWND hWnd);

      // ----------------------------------------------------------------------------
      // unsubclass the subclassed window.
      // ----------------------------------------------------------------------------

      bool    UnHook();

      // ----------------------------------------------------------------------------
      // tell us if we have a window subclassed.
      // ----------------------------------------------------------------------------

      bool    Hooked();

      // ----------------------------------------------------------------------------
      // toggle skin on/off.
      // ----------------------------------------------------------------------------

      bool    Enable(bool bEnable);

      // ----------------------------------------------------------------------------
      // tell if the skinning is enabled
      // ----------------------------------------------------------------------------

      bool    Enabled();

      // ----------------------------------------------------------------------------
      // return the skin bitmap width.
      // ----------------------------------------------------------------------------

      int     Width();

      // ----------------------------------------------------------------------------
      // return the skin bitmap height.
      // ----------------------------------------------------------------------------

      int     Height();

      // ----------------------------------------------------------------------------
      // return the skin device context.
      // ----------------------------------------------------------------------------

      HDC     HDC(); // hier Fehlermeldung

  };

HDC CSkin::HDC()
{
  return m_dcSkin;
}
</code></pre>
<p>Bei<br />
HDC HDC();<br />
bekomme ich folgende Fehlermeldung:</p>
<blockquote>
<p>error: changes meaning of `HDC' from `typedef struct HDC__*HDC'</p>
</blockquote>
<p>Wo liegt der Fehler??/Wie kann ich ihn beheben??</p>
<p>mfg ghill</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/201120/error-changes-meaning-of-hdc-from-typedef-struct-hdc__-hdc</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 06:55:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201120.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Dec 2007 20:05:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error: changes meaning of &#96;HDC&#x27; from &#96;typedef struct HDC__*HDC&#x27; on Mon, 24 Dec 2007 20:05:05 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich hab versucht die Beispiele von <a href="http://www.flipcode.com/articles/article_win32skins.shtml" rel="nofollow">diesem</a> Tutorial zu übersetzen (letztes Beispiel).<br />
Ein Codeausschnitt:</p>
<pre><code class="language-cpp">class CSkin
  {

    // --------------------------------------------------------------------------
    // the skin window procedure, where the class
    // will handle WM_PAINT and WM_LBUTTONDOWN automatically.
    // --------------------------------------------------------------------------
    friend LRESULT CALLBACK SkinWndProc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam);

    private:

      // the associated window handle
      HWND      m_hWnd;

      // the old window procedure
      WNDPROC   m_OldWndProc;

      // skin region
      HRGN      m_rgnSkin;

      // the internal skin device context handle
      HDC       m_dcSkin;

      // bitmap and old bitmap from the device context
      HBITMAP   m_hBmp, m_hOldBmp;

      // skin dimensions
      int       m_iWidth, m_iHeight;

      // on|off toggle
      bool      m_bEnabled;

      // tell the class if it has a window subclassed.
      bool      m_bHooked;

      // skin retrieval helper
      bool      GetSkinData(int iSkinRegion, int iSkinBitmap);

    public:

      // ----------------------------------------------------------------------------
      // constructor 1 - use it when you have not already created the app window.
      // this one will not subclass automatically, you must call Hook() to subclass.
      // will throw an exception if unable to initialize skin from resource.
      // ----------------------------------------------------------------------------

      CSkin(int iSkinRegion, int iSkinBitmap);

      // ----------------------------------------------------------------------------
      // constructor 2 - use it when you have already created the app window.
      // this one will subclass the window automatically.
      // will throw an exception if unable to initialize skin from resource.
      // ----------------------------------------------------------------------------

      CSkin(HWND hWnd, int iSkinRegion, int iSkinBitmap);

      // ----------------------------------------------------------------------------
      // destructor - will free allocated resources.
      // ----------------------------------------------------------------------------

      virtual ~CSkin();

      // ----------------------------------------------------------------------------
      // subclass a window.
      // ----------------------------------------------------------------------------

      bool    Hook(HWND hWnd);

      // ----------------------------------------------------------------------------
      // unsubclass the subclassed window.
      // ----------------------------------------------------------------------------

      bool    UnHook();

      // ----------------------------------------------------------------------------
      // tell us if we have a window subclassed.
      // ----------------------------------------------------------------------------

      bool    Hooked();

      // ----------------------------------------------------------------------------
      // toggle skin on/off.
      // ----------------------------------------------------------------------------

      bool    Enable(bool bEnable);

      // ----------------------------------------------------------------------------
      // tell if the skinning is enabled
      // ----------------------------------------------------------------------------

      bool    Enabled();

      // ----------------------------------------------------------------------------
      // return the skin bitmap width.
      // ----------------------------------------------------------------------------

      int     Width();

      // ----------------------------------------------------------------------------
      // return the skin bitmap height.
      // ----------------------------------------------------------------------------

      int     Height();

      // ----------------------------------------------------------------------------
      // return the skin device context.
      // ----------------------------------------------------------------------------

      HDC     HDC(); // hier Fehlermeldung

  };

HDC CSkin::HDC()
{
  return m_dcSkin;
}
</code></pre>
<p>Bei<br />
HDC HDC();<br />
bekomme ich folgende Fehlermeldung:</p>
<blockquote>
<p>error: changes meaning of `HDC' from `typedef struct HDC__*HDC'</p>
</blockquote>
<p>Wo liegt der Fehler??/Wie kann ich ihn beheben??</p>
<p>mfg ghill</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1425717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1425717</guid><dc:creator><![CDATA[Ghill]]></dc:creator><pubDate>Mon, 24 Dec 2007 20:05:05 GMT</pubDate></item><item><title><![CDATA[Reply to error: changes meaning of &#96;HDC&#x27; from &#96;typedef struct HDC__*HDC&#x27; on Mon, 24 Dec 2007 23:46:18 GMT]]></title><description><![CDATA[<p>Funktion anders nennen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1425766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1425766</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Mon, 24 Dec 2007 23:46:18 GMT</pubDate></item><item><title><![CDATA[Reply to error: changes meaning of &#96;HDC&#x27; from &#96;typedef struct HDC__*HDC&#x27; on Tue, 25 Dec 2007 02:46:36 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> Namenskonflikt <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/1425784</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1425784</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 25 Dec 2007 02:46:36 GMT</pubDate></item><item><title><![CDATA[Reply to error: changes meaning of &#96;HDC&#x27; from &#96;typedef struct HDC__*HDC&#x27; on Thu, 27 Dec 2007 19:22:23 GMT]]></title><description><![CDATA[<p>was für nen dummer fehler.<br />
vielen dank, jetzt gehts.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1426974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1426974</guid><dc:creator><![CDATA[Ghill]]></dc:creator><pubDate>Thu, 27 Dec 2007 19:22:23 GMT</pubDate></item></channel></rss>