我从CButton继承一个类,从MFC 扩张DLL中导出,编译DLL能同步。
使用这个SpButton类的时候也能通过,但是运行这个编译好的EXE之后,就直接报错退出了。?头文件如下,我用了TIMER:请教有经验的高手:class AFX_EXT_CLASS  SpButton : public CButton
{
// Construction
public:
       SpButton();// Attributes
public:// Operations
public:// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(SpButton )
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL// Implementation
public:(INTERFACECHANCEDPROC callfunct);
void ReInit(RECT newSize);
virtual ~SpButton(); // Generated message map functions
protected:
//{{AFX_MSG(SpButton )
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG DECLARE_MESSAGE_MAP()