首页上一页 1 下一页尾页 1 条记录 1/1页
如何通过mfc“使用字体对话框获取字体信息”?
发表在C语言图书答疑
2009-08-08
是否精华
是
否
版块置顶:
是
否
请具体讲述《Visual C++程序设计自学手册》2008年2月第1版,ISBN 978-7-115-17295-2/TP 中的P130的5.6.3的具体步骤,最好能有视频,因为我自己编时,编译通不过下面是错误原因:
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(175) : error C2039: 'OnOk' : is not a member of 'CFontDlgDlg'
d:\vc++6.0\c++\fontdlg\fontdlgdlg.h(14) : see declaration of 'CFontDlgDlg'
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(177) : error C2065: 'm_edit1' : undeclared identifier
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(177) : error C2228: left of '.GetFont' must have class/struct/union type
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(183) : error C2065: 'm_font' : undeclared identifier
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(183) : error C2228: left of '.Detach' must have class/struct/union type
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(186) : error C2228: left of '.CreateFontIndirectA' must have class/struct/union type
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(187) : error C2228: left of '.SetFont' must have class/struct/union type
请问我哪步没有做吗?还是怎么回事?
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(175) : error C2039: 'OnOk' : is not a member of 'CFontDlgDlg'
d:\vc++6.0\c++\fontdlg\fontdlgdlg.h(14) : see declaration of 'CFontDlgDlg'
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(177) : error C2065: 'm_edit1' : undeclared identifier
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(177) : error C2228: left of '.GetFont' must have class/struct/union type
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(183) : error C2065: 'm_font' : undeclared identifier
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(183) : error C2228: left of '.Detach' must have class/struct/union type
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(186) : error C2228: left of '.CreateFontIndirectA' must have class/struct/union type
D:\Vc++6.0\C++\FontDlg\FontDlgDlg.cpp(187) : error C2228: left of '.SetFont' must have class/struct/union type
请问我哪步没有做吗?还是怎么回事?