# how to fix error C2523 in VC++ 6.0

+1 vote
These are the two error occurs in my every program, so help me to FIX it...

* c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2736) : error C2523: 'CBitmapButton::~CButton' : destructor tag mismatch

* c:\program files\microsoft visual studio\vc98\mfc\include\afxext.h(74) : error C2504: 'CButton' : base class undefined
requested
edited

## 1 Solution

+1 vote

I think you can fix that problem with the below line:

`CBitmapButton::~CBitmapButton`

It is better to have the same name for the destructor and the class identifier. Apparently you don't have a class named "CButton"

solved by (560 points)
edited by