MFC c++ 程序出现问题 error LNK2019: 无法解析的外部符号
>MFC_PHOTODlg.obj:errorLNK2019:无法解析的外部符号"public:__thiscallCDialogFoorprint::CDialogFo...
>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_;
} 展开
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_;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询