C++ pi的定义我定义了类CTextclass CText:public CDraw{...protected:con
C++ pi的定义我定义了类CTextclass CText:public CDraw{...protected:const float pi;public:CText();CText(short ColorPen,short ColorBrush,short LineWide,shortLineType,short Layer,int id_only,BOOL Delete,float StartX,float StartY,float Angle1,float Angle2,float TextHeight,float TextWide,float OffWide,unsigned char TextFont,CString Text) :CDraw(ColorPen,ColorBrush,LineWide,LineType,Layer,id_only,Delete),pi(float(3.14159265)) { m_StartX=StartX; m_StartY=StartY; m_Angle1=Angle1; m_Angle2=Angle2; m_TextHeight=TextHeight; m_TextWide=TextWide; m_OffWide=OffWide; m_TextLong=Text.GetLength(); //计算字符长度 c_Text=Text; }}...};但是显示--------------------Configuration: Draw - Win32 Debug--------------------Compiling...Draw.cppDrawDoc.cppDrawView.cppGenerating Code...Linking...DrawDoc.obj : error LNK2001: unresolved external symbol "public: void __thiscall CDraw::DPtoVP(float,float,int *,int *)" (?DPtoVP@CDraw@@QAEXMMPAH0@Z)DrawDoc.obj : error LNK2001: unresolved external symbol "public: int __thiscall CDraw::DLtoVL(float)" (?DLtoVL@CDraw@@QAEHM@Z)Debug/Draw.exe : fatal error LNK1120: 2 unresolved externalsError executing link.exe.Draw.exe - 3 error(s), 0 warning(s)
最佳回答
你这个是mfc工程吧?自己还是好好看看哪个工程的错误吧,然后一点点把错误的范围缩小。已经提示你是DrawDoc文件中的这个方法CDraw::DLtoVL(float)有问题了,你自己在查查把。
最新回答共有2条回答
-
2026-04-02 19:40:03刻苦的水杯
回复你这个是mfc工程吧?自己还是好好看看哪个工程的错误吧,然后一点点把错误的范围缩小。已经提示你是DrawDoc文件中的这个方法CDraw::DLtoVL(float)有问题了,你自己在查查把。
热门文章
- 康达学院专转本五年制
- 高考一个考场分ab卷吗
- not only but also用法
- 某物体做自由落体运动,从释放开始计时,则物体在前2s内的平均速度为______m/s,物体下落2m时的速度大小为______m/s.
- 三角函数公式大全表格
- 地理中考必背知识点2022
- 2013-2014学年小学六年级科学上学期期末考试试卷及答案
- 人教版2014-2015学年小学五年级英语第二学期期中教学质量检测试卷及答案
- 【Linux驱动开发】设备树详解(二)设备树语法详解
- 别跟客户扯细节
- 在别的城市买房子能落户吗
- 卖房前要把装修贷还完吗
- 高中政治教学提高教学效果的方法探究
- “互联网+”背景下的初中英语课堂教学改革与创新策略研究
- 2022年终止合同范本
- 租房合同范本范文
- 如何挑选土豆
- 如何挑选土鸡
