24小时热门版块排行榜    

查看: 780  |  回复: 2

zyj8119

木虫 (著名写手)

[求助] 一个MFC的小项目出了问题,求高手帮忙。。

MFC的小项目在这里:
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

好好学习,天天向上。
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zyj8119

木虫 (著名写手)

引用回帖:
Originally posted by zyj8119 at 2011-05-07 20:52:06:
MFC的小项目在这里:

--------------------Configuration: GPACalculator - Win32 Debug--------------------
Compiling...
GPACalculator.cpp
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(29) : error C2535: 'double __thiscall CGPACalculatorDlg::GetSDPoint(double)' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(26) : see declaration of 'GetSDPoint'
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(64) : error C2535: 'void __thiscall CGPACalculatorDlg::SpliterString(class CString,double &,double &' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(61) : see declaration of 'SpliterString'
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(82) : error C2535: 'void __thiscall CGPACalculatorDlg::GatherData(void)' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(80) : see declaration of 'GatherData'
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(107) : error C2535: 'void __thiscall CGPACalculatorDlg::ChangeType(int)' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(105) : see declaration of 'ChangeType'
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(162) : error C2535: 'void __thiscall CGPACalculatorDlg::SetEditRead(bool)' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(160) : see declaration of 'SetEditRead'
GPACalculatorDlg.cpp
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(29) : error C2535: 'double __thiscall CGPACalculatorDlg::GetSDPoint(double)' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(26) : see declaration of 'GetSDPoint'
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(64) : error C2535: 'void __thiscall CGPACalculatorDlg::SpliterString(class CString,double &,double &' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(61) : see declaration of 'SpliterString'
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(82) : error C2535: 'void __thiscall CGPACalculatorDlg::GatherData(void)' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(80) : see declaration of 'GatherData'
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(107) : error C2535: 'void __thiscall CGPACalculatorDlg::ChangeType(int)' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(105) : see declaration of 'ChangeType'
c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(162) : error C2535: 'void __thiscall CGPACalculatorDlg::SetEditRead(bool)' : member function already defined or declared
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(160) : see declaration of 'SetEditRead'
C:\Program Files\Microsoft Visual Studio\MyProjects\GPACalculator\GPACalculatorDlg.cpp(298) : error C2509: 'OnCtlColor' : member function not declared in 'CGPACalculatorDlg'
        c:\program files\microsoft visual studio\myprojects\gpacalculator\gpacalculatordlg.h(14) : see declaration of 'CGPACalculatorDlg'
Generating Code...
Error executing cl.exe.

GPACalculator.exe - 11 error(s), 0 warning(s)
好好学习,天天向上。
2楼2011-05-07 20:52:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yalefield

金虫 (文坛精英)

老汉一枚

【答案】应助回帖

zyj8119(金币+20): 感谢老汉一语惊醒梦中人。。。。 2011-05-08 11:42:05
在GPACalculatorDlg.h中,
CODE:
        double GetSDPoint(double dPoint);

        double CGPACalculatorDlg::GetSDPoint(double dPoint)
        {
                UpdateData();
                ....
        }

您既声明了函数,随即又给出函数的实现,不仅很啰嗦,而且使得编译器都嫌您啰嗦。
3楼2011-05-08 09:34:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 zyj8119 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[博后之家] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 s3fFTmArrBt6 2026-09-13 4/200 2026-09-14 23:24 by vZfe6xYu34yj
[硕博家园] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 s3fFTmArrBt6 2026-09-13 5/250 2026-09-14 23:13 by vZfe6xYu34yj
[教师之家] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 s3fFTmArrBt6 2026-09-13 3/150 2026-09-14 23:09 by vZfe6xYu34yj
[考研] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 LwdutQ8HoqWP 2026-09-13 3/150 2026-09-14 22:33 by vZfe6xYu34yj
[考研] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +5 LwdutQ8HoqWP 2026-09-13 5/250 2026-09-14 22:25 by vZfe6xYu34yj
[教师之家] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +5 3n8v2C8RimXI 2026-09-13 5/250 2026-09-14 22:01 by vZfe6xYu34yj
[考研] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +4 3n8v2C8RimXI 2026-09-13 5/250 2026-09-14 22:00 by vZfe6xYu34yj
[博后之家] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +4 QUjhNVAcOSff 2026-09-13 4/200 2026-09-14 21:37 by vZfe6xYu34yj
[考博] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +5 QUjhNVAcOSff 2026-09-13 5/250 2026-09-14 21:36 by vZfe6xYu34yj
[找工作] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 QUjhNVAcOSff 2026-09-13 5/250 2026-09-14 21:25 by vZfe6xYu34yj
[考研] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 s3fFTmArrBt6 2026-09-14 3/150 2026-09-14 18:01 by Aj1rhIDL5ixY
[考博] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 s3fFTmArrBt6 2026-09-14 4/200 2026-09-14 17:49 by Aj1rhIDL5ixY
[找工作] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 s3fFTmArrBt6 2026-09-14 4/200 2026-09-14 17:48 by Aj1rhIDL5ixY
[考博] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +4 s3fFTmArrBt6 2026-09-14 4/200 2026-09-14 17:25 by Aj1rhIDL5ixY
[教师之家] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 LwdutQ8HoqWP 2026-09-13 4/200 2026-09-14 16:13 by Aj1rhIDL5ixY
[找工作] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +5 QUjhNVAcOSff 2026-09-13 6/300 2026-09-14 15:21 by Aj1rhIDL5ixY
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 QUjhNVAcOSff 2026-09-13 3/150 2026-09-14 15:09 by Aj1rhIDL5ixY
[考研] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 QUjhNVAcOSff 2026-09-13 3/150 2026-09-14 14:57 by Aj1rhIDL5ixY
[找工作] 浙江师范大学是怎么坑我的 +6 recruit123 2026-09-09 6/300 2026-09-14 12:00 by 萨仁其其格
[考博] 27秋季材料博士申请求助 10+3 Cahal1 2026-09-11 4/200 2026-09-14 08:50 by 北京莱茵编辑
信息提示
请填处理意见