| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 405 人关注过本帖
标题:error LNK2019: unresolved external symbol
只看楼主 加入收藏
斯拉万月
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2012-5-16
结帖率:50%
收藏
已结贴  问题点数:20 回复次数:1 
error LNK2019: unresolved external symbol
在vs2008中编译时出现错误error LNK2019: unresolved external symbol "public: class CDrawEDoc * __thiscall CDrawEView::GetDocument(void)const " (?GetDocument@CDrawEView@@QBEPAVCDrawEDoc@@XZ) referenced in function "public: virtual int __thiscall CDlgSanx::OnInitDialog(void)" (?OnInitDialog@CDlgSanx@@UAEHXZ)
 请大家帮忙看看怎么回事

代码如下:
#pragma once
#include "afx.h"

class CBaseU :public CObject
{
public:
    DECLARE_SERIAL(CBaseU)   //是基类可序列化操作

   
public:
    int     m_type;          //图元的类型
    COLORREF  m_color;       //图元的颜色   
    CString    m_Snumber;      //图元的编号
    CString    m_description;  
    CPoint    m_postion;     //图元左上角的位置
    UINT      m_lineStyle;
    int       m_lineWidth;   

public:
     CBaseU();
     CBaseU(const CBaseU& basemap);
    ~CBaseU(){}

    CBaseU operator=(const CBaseU& basemap);   //重载符号
     virtual CBaseU* Copy(){return NULL;}         //图元指针copy
    virtual void Init();                          //初始化变量值
    virtual int GetType(){return m_type;}         //获取图元类型
    COLORREF  GetColor(){return m_color;}
    void      SetColor(COLORREF color){m_color=color;}

    virtual void Draw(CDC* pDC ,CPoint o_p,int m_size){};
    virtual void Serialize(CArchive& ar);


};
搜索更多相关主题的帖子: include function void 
2012-05-16 09:28
donggegege
Rank: 5Rank: 5
等 级:职业侠客
威 望:1
帖 子:125
专家分:368
注 册:2011-5-1
收藏
得分:14 
#include "afx.h"

这是什么灰机??
2012-05-16 13:14
快速回复:error LNK2019: unresolved external symbol
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013501 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved