Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. virtual function override intended?

virtual function override intended?

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    greekgoddj
    wrote on last edited by
    #1

    Greetings, I am getting the following warnings. I have some classes whch overide the Create function, but with very different arguement lists. Somehow though the compiler thinks they might be meant to be the same.The arguement lists look very different to me, how can it be assuming they are smiliar? thanks in advance, Aristotel :-D BOOL Create(CWnd* pParentWnd, const RECT& rect, UINT nID, DWORD dwStyle /*=WS_VISIBLE*/, int nMinVal, int nMaxVal); warning #1125: function "CWnd::Create(LPCTSTR={LPCSTR={const CHAR={char} *}}, LPCTSTR={LPCSTR={const CHAR={char} *}}, DWORD={unsigned long}, const RECT &, CWnd *, UINT={unsigned int}, CCreateContext *)" is hidden by "CLevelMeter::Create" -- virtual function override intended? BOOL Create(CWnd* pParentWnd, const RECT& rect, UINT nID, DWORD dwStyle /*=WS_VISIBLE*/, int nMinVal, int nMaxVal); BOOL Create(CWnd *pParentWnd, const RECT &rect, UINT nID, DWORD dwStyle); warning #1125: function "CWnd::Create(LPCTSTR={LPCSTR={const CHAR={char} *}}, LPCTSTR={LPCSTR={const CHAR={char} *}}, DWORD={unsigned long}, const RECT &, CWnd *, UINT={unsigned int}, CCreateContext *)" is hidden by "CMultitapControl::Create" -- virtual function override intended? BOOL Create(CWnd *pParentWnd, const RECT &rect, UINT nID, DWORD dwStyle); Edit/Delete Message

    L 1 Reply Last reply
    0
    • G greekgoddj

      Greetings, I am getting the following warnings. I have some classes whch overide the Create function, but with very different arguement lists. Somehow though the compiler thinks they might be meant to be the same.The arguement lists look very different to me, how can it be assuming they are smiliar? thanks in advance, Aristotel :-D BOOL Create(CWnd* pParentWnd, const RECT& rect, UINT nID, DWORD dwStyle /*=WS_VISIBLE*/, int nMinVal, int nMaxVal); warning #1125: function "CWnd::Create(LPCTSTR={LPCSTR={const CHAR={char} *}}, LPCTSTR={LPCSTR={const CHAR={char} *}}, DWORD={unsigned long}, const RECT &, CWnd *, UINT={unsigned int}, CCreateContext *)" is hidden by "CLevelMeter::Create" -- virtual function override intended? BOOL Create(CWnd* pParentWnd, const RECT& rect, UINT nID, DWORD dwStyle /*=WS_VISIBLE*/, int nMinVal, int nMaxVal); BOOL Create(CWnd *pParentWnd, const RECT &rect, UINT nID, DWORD dwStyle); warning #1125: function "CWnd::Create(LPCTSTR={LPCSTR={const CHAR={char} *}}, LPCTSTR={LPCSTR={const CHAR={char} *}}, DWORD={unsigned long}, const RECT &, CWnd *, UINT={unsigned int}, CCreateContext *)" is hidden by "CMultitapControl::Create" -- virtual function override intended? BOOL Create(CWnd *pParentWnd, const RECT &rect, UINT nID, DWORD dwStyle); Edit/Delete Message

      L Offline
      L Offline
      Larry J Siddens
      wrote on last edited by
      #2

      Try putting virtual in front of the declaration. EX: virtual BOOL Create(CWnd* pParentWnd, const RECT& rect, UINT nID, DWORD dwStyle /*=WS_VISIBLE*/, int nMinVal, int nMaxVal); Hope this helps. Larry J. Siddens

      G 1 Reply Last reply
      0
      • L Larry J Siddens

        Try putting virtual in front of the declaration. EX: virtual BOOL Create(CWnd* pParentWnd, const RECT& rect, UINT nID, DWORD dwStyle /*=WS_VISIBLE*/, int nMinVal, int nMaxVal); Hope this helps. Larry J. Siddens

        G Offline
        G Offline
        greekgoddj
        wrote on last edited by
        #3

        Hi Larry, Unfortunately that didn't do it. Very strange...such a different arguement list yet it thinks its meant to be an over ride...hmmm... Do let me know if any other ideas come arround. I will keep looking as well. Thanks, Aristotel

        L 1 Reply Last reply
        0
        • G greekgoddj

          Hi Larry, Unfortunately that didn't do it. Very strange...such a different arguement list yet it thinks its meant to be an over ride...hmmm... Do let me know if any other ideas come arround. I will keep looking as well. Thanks, Aristotel

          L Offline
          L Offline
          Larry J Siddens
          wrote on last edited by
          #4

          Email me your code (all that I need is for compiling) and I will take a look. Larry J. Siddens

          G 1 Reply Last reply
          0
          • L Larry J Siddens

            Email me your code (all that I need is for compiling) and I will take a look. Larry J. Siddens

            G Offline
            G Offline
            greekgoddj
            wrote on last edited by
            #5

            Hello Larry...(sorry for the delay)... The code is part of a rather large commercial project..so i need to try and trim it down to the simplset level so that i can email you the relevant parts. Regards, Aristotel :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups