virtual function override intended?
-
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 -
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 MessageTry 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
-
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
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
-
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
Email me your code (all that I need is for compiling) and I will take a look. Larry J. Siddens
-
Email me your code (all that I need is for compiling) and I will take a look. Larry J. Siddens
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 :)