IF CButton is not defined I guess you have to make sure you are able to compile MFC Programs