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,为何会报这个错误呢?不懂啊
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,为何会报这个错误呢?不懂啊
再说没资源也不应该是这个错误提示啊。
不过我重新贴了下,又没有那个错误了,可能是哪里出了点问题,算了。