Linking...
vDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CBackupdlg::CBackupdlg(class CWnd *)" (??0CBackupdlg@@QAE@PAVCWnd@@@Z)
Debug/v.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

解决方案 »

  1.   

    CBackupdlg是你引用的别的程序库里的吧?比如其他DLL你大概是在工程文件里没有Link对应的.Lib
      

  2.   

    没有相应的lib
    加在link的选项中
      

  3.   

    CBackupdlg(class CWnd *)
    你找一下你的CPP里有没有这个函数
      

  4.   

    "CBackupdlg(class CWnd *)
    你找一下你的CPP里有没有这个函数"没有找到这个函数,我该怎么加进去?
      

  5.   

    没有相应的lib
    加在link的选项中??我应该怎么做,麻烦解答一下好吗?我急死了,笨死了
      

  6.   

    先把backupdlg.h中的内容贴出来。
      

  7.   

    #if !defined(AFX_BACKUPDLG_H__9B78E624_507A_4E40_A674_1BD59FC65E69__INCLUDED_)
    #define AFX_BACKUPDLG_H__9B78E624_507A_4E40_A674_1BD59FC65E69__INCLUDED_#if _MSC_VER > 1000
    #pragma once
    #endif // _MSC_VER > 1000
    // Backupdlg.h : header file
    ///////////////////////////////////////////////////////////////////////////////
    // CBackupdlg dialogclass CBackupdlg : public CDialog
    {
    // Construction
    public:
    CBackupdlg(CWnd* pParent = NULL);   // standard constructor// Dialog Data
    //{{AFX_DATA(CBackupdlg) // NOTE: the ClassWizard will add data members here
    //}}AFX_DATA
    // Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CBackupdlg)
    protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    //}}AFX_VIRTUAL// Implementation
    protected: // Generated message map functions
    //{{AFX_MSG(CBackupdlg)
    // NOTE: the ClassWizard will add member functions here
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
    };//{{AFX_INSERT_LOCATION}}
    // Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_BACKUPDLG_H__9B78E624_507A_4E40_A674_1BD59FC65E69__INCLUDED_)
      

  8.   

    是不是被我删了什么东西??我发现我的CLASSES一栏里面,没有了我生成的这个类要不要紧,
      

  9.   

    CBackupdlg::CBackupdlg(CWnd *pParent):CDialg(CBakupdlg::IDD, pParent)
    {}
      

  10.   

    这是加进去之后的反应,Compiling...
    vDlg.cpp
    fatal error C1063:
    Command line warning D4028 : minimal rebuild failure, reverting to normal build
    Error executing cl.exe.v.exe - 1 error(s), 1 warning(s)
      

  11.   

    我把那行代码加入类中编译出现了下面的情况:Compiling...
    vDlg.cpp
    e:\valentone\v\backupdlg.h(22) : error C2535: '__thiscall CBackupdlg::CBackupdlg(class CWnd *)' : member function already defined or declared
            e:\valentone\v\backupdlg.h(17) : see declaration of 'CBackupdlg::CBackupdlg'
    Error executing cl.exe.v.exe - 1 error(s), 0 warning(s)
      

  12.   

    你的代码没有错,是link设置的问题