MFC c++ 程序出现问题 error LNK2019: 无法解析的外部符号

>MFC_PHOTODlg.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CDialogFoorprint::CDialogFoorprint(class CWnd *,class PictureInfoList *)" (??0CDialogFoorprint@@QAE@PAVCWnd@@PAVPictureInfoList@@@Z),该符号在函数 "public: void __thiscall CMFC_PHOTODlg::OnBnClickedButtonfootprint(void)" (?OnBnClickedButtonfootprint@CMFC_PHOTODlg@@QAEXXZ) 中被引用

1>D:\MFC_PHOTO2\MFC_PHOTO\Debug\MFC_PHOTO.exe : fatal error LNK1120: 2 个无法解析的外部命令

相关的两个文件函数
//DialogFoorprint.h
#pragma once

class CDialogFoorprint : public CDialog
{
DECLARE_DYNAMIC(CDialogFoorprint)

public:
CDialogFoorprint(CWnd* pParent = NULL); // 标准构造函数
CDialogFoorprint(CWnd* pParent, PictureInfoList * picLibraryPtr_);
virtual ~CDialogFoorprint();

// 对话框数据
enum { IDD = IDD_DIALOG_footprint };

private:
LocationGraph<200> ecnuMap;
PictureInfoList * picLibraryPtr;
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持

DECLARE_MESSAGE_MAP()
public:
afx_msg void OnPaint();
virtual BOOL OnInitDialog();
public:
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
};
___.cpp________________________________________________

#include "stdafx.h"
#include "MFC_PHOTO.h"
#include "FootMarkdlg.h"
#pragma comment(lib,"ws2_32.lib")
// CFootMarkdlg 对话框

IMPLEMENT_DYNAMIC(CFootMarkdlg, CDialog)

CFootMarkdlg::CFootMarkdlg(CWnd* pParent /*=NULL*/)
: CDialog(CFootMarkdlg::IDD, pParent)
{

}

CFootMarkdlg::CFootMarkdlg(CWnd* pParent, PictureInfoList * picLibraryPtr_)
: CDialog(CFootMarkdlg::IDD, pParent)
{
picLibraryPtr = picLibraryPtr_;
}

就是说你没实现
CDialogFoorprint的构造函数,俩参数那个
还有一个OnBnClickedButtonfootprint也没实现。追问

可是我明明实现了啊在cpp中

追答

反之你发的那些代码没有

追问

CFootMarkdlg::CFootMarkdlg(CWnd* pParent, PictureInfoList * picLibraryPtr_)
: CDialog(CFootMarkdlg::IDD, pParent)
{
picLibraryPtr = picLibraryPtr_;
}

这个不算实现吗?

追答

可是你声明的类叫CDialogFoorprint
难道是我看花眼了?
虽然它俩意思有点像。

追问

我知道了。。。我傻

温馨提示:答案为网友推荐,仅供参考
相似回答