Creating library G:\newspace\multiview\excute\Debug\MultiView.lib and object G:\newspace\multiview\excute\Debug\MultiView.exp
WebMainDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CPlaybackDlg::CPlaybackDlg(class CWnd *)" (??0CPlaybackDlg@@QAE@PAVCWnd@@@Z)
G:\newspace\multiview\excute\Debug\MultiView.exe : fatal error LNK1120: 1 unresolved externals.h
class CPlaybackDlg : public CDialog
{
// Construction
public:
CPlaybackDlg(CWnd* pParent = NULL);   // standard constructor.cpp
int g_iPlaybackDlgID  = PLAYBACKDLG_IDD; 
CPlaybackDlg::CPlaybackDlg(CWnd* pParent /*=NULL*/)
: CDialog(g_iPlaybackDlgID, pParent)
{
//{{AFX_DATA_INIT(CPlaybackDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_VIEW = NULL; InitData();
}PLAYBACKDLG_IDD是个资源,我随意在resorce.h里面define了一下,从其他工程里面将PLAYBACKDLG_IDD的资源写入.rc,将DLG控件名称随意define,为何会报这个错误呢?不懂啊

解决方案 »

  1.   

    我把资源写进了.rc中了,点开了Resource也可以看到对话框了。
    再说没资源也不应该是这个错误提示啊。
      

  2.   

    最好从资源视图中修改,这样的修改会涉及到resource.h ,.rc,dlg.h中的enum
      

  3.   

    enum并没有指定对话框,我的对话框是通过g_iPlaybackDlgID指定的。
    不过我重新贴了下,又没有那个错误了,可能是哪里出了点问题,算了。