ScribbleView.obj : error LNK2001: unresolved external symbol "protected: void __thiscall CScribbleView::OnMouseMove(unsigned int,class CPoint)" (?OnMouseMove@CScribbleView@@IAEXIVCPoint@@@Z)
ScribbleView.obj : error LNK2001: unresolved external symbol "protected: void __thiscall CScribbleView::OnLButtonUp(unsigned int,class CPoint)" (?OnLButtonUp@CScribbleView@@IAEXIVCPoint@@@Z)
ScribbleView.obj : error LNK2001: unresolved external symbol "protected: void __thiscall CScribbleView::OnLButtonDown(unsigned int,class CPoint)" (?OnLButtonDown@CScribbleView@@IAEXIVCPoint@@@Z)
Debug/Scribble.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

解决方案 »

  1.   

    你应该把ScribbleView的源码贴出来.
      

  2.   

    // ScribbleView.h : interface of the CScribbleView class
    //
    /////////////////////////////////////////////////////////////////////////////#if !defined(AFX_SCRIBBLEVIEW_H__47A9A0C3_E21E_46AD_A0A5_8C335A9D84CE__INCLUDED_)
    #define AFX_SCRIBBLEVIEW_H__47A9A0C3_E21E_46AD_A0A5_8C335A9D84CE__INCLUDED_#if _MSC_VER > 1000
    #pragma once
    #endif // _MSC_VER > 1000
    class CScribbleView : public CView
    {
    protected: // create from serialization only
    CScribbleView();
    DECLARE_DYNCREATE(CScribbleView)// Attributes
    public:
    CScribbleDoc* GetDocument();// Operations
    public:// Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CScribbleView)
    public:
    virtual void OnDraw(CDC* pDC);  // overridden to draw this view
    virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
    protected:
    virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
    virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
    virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
    //}}AFX_VIRTUAL// Implementation
    public:
    virtual ~CScribbleView();
    #ifdef _DEBUG
    virtual void AssertValid() const;
    virtual void Dump(CDumpContext& dc) const;
    #endifprotected:// Generated message map functions
    protected:
    //{{AFX_MSG(CScribbleView)
    // NOTE - the ClassWizard will add and remove member functions here.
    //    DO NOT EDIT what you see in these blocks of generated code !
    //}}AFX_MSG//add by jzp 070429
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
        afx_msg void OnMouseMove(UINT nFlags, CPoint point);
    //end add by jzp 070429

    DECLARE_MESSAGE_MAP()
    };#ifndef _DEBUG  // debug version in ScribbleView.cpp
    inline CScribbleDoc* CScribbleView::GetDocument()
       { return (CScribbleDoc*)m_pDocument; }
    #endif///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}
    // Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_SCRIBBLEVIEW_H__47A9A0C3_E21E_46AD_A0A5_8C335A9D84CE__INCLUDED_)请大家帮我看看...急
      

  3.   

    确保在ScribbleView.cpp文件中包含了头文件并且执行了3个函数OnMouseMove、OnLButtonUp、OnLButtonDown
      

  4.   

    在文件管理中把ScribbleView.cpp加到项目里
      

  5.   

    链接错误:好像没有实现那几个消息处理函数,不过MFC好像不可能出现这处情况吧。如果你是用ClassWizard的话。
      

  6.   

    另外你上面贴的是头文件,看看相应的CPP文件吧,里面应该没有那几个函数。