首页上一页 1 下一页尾页 1 条记录 1/1页
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)
请教了:[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)