visualc++从入门 183页使用对话框设置字体编译错误 请大佬指教
发表在C语言图书答疑 2013-08-26
是否精华
版块置顶:
按照视频内做的老是编译不过去
请教了:[img src=c:\用户\Administrator\a.PNG/img]
怕图片传不过去,这是编译后的提示
268002FONT.cpp
268002FONTDlg.cpp
D:\you need it\visual c++ 6.0\268002FONT\268002FONTDlg.cpp(124) : error C2039: 'SetWindowTextA' : is not a member of 'CString'
        e:\c\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
D:\you need it\visual c++ 6.0\268002FONT\268002FONTDlg.cpp(180) : error C2039: 'GetFont' : is not a member of 'CString'
        e:\c\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
D:\you need it\visual c++ 6.0\268002FONT\268002FONTDlg.cpp(189) : error C2039: 'CreateFontIndirectA' : is not a member of 'CButton'
        e:\c\microsoft visual studio\vc98\mfc\include\afxwin.h(2704) : see declaration of 'CButton'
D:\you need it\visual c++ 6.0\268002FONT\268002FONTDlg.cpp(190) : error C2039: 'SetFont' : is not a member of 'CString'
        e:\c\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
Generating Code...
执行 cl.exe 时出错.

268002FONT.exe - 1 error(s), 0 warning(s)
分享到:
精彩评论 1
cui_mrkj
学分:0 LV1
TA的每日心情
?
2020-08-20 13:57:19
2013-08-28
沙发
读者朋友
    你好:
光盘中的源码是编译通过的,请将光盘中的完整源码拷出。光盘中是完整工程,直接打开dsw工程文件,程序是可以正常运行的。
cpp中包含有需要的.h文件,单独拷出一部分代码会丢失这些关联,如果没有包含相应头文件,会提示所用的函数不是某个类的成员,如你的情况。
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照