错误 5 error C2872: “Font”: 不明确的符号
f:\mfc类\gditest2\gditest2\gdiop.cpp
136
错误 6 error C2259: “Font”: 不能实例化抽象类 f:\mfc类\gditest2\gditest2\gdiop.cpp 136
错误 7 error C2661: “Font::Font”: 没有重载函数接受 4 个参数 f:\mfc类\gditest2\gditest2\gdiop.cpp 136
解决方案--------------------
using namespace Gdiplus;
或
Gdiplus::Font
Gdiplus::FontFamily( 该方法亲测可以用,限定)
错误 6 error C2259: “Font”: 不能实例化抽象类 f:\mfc类\gditest2\gditest2\gdiop.cpp 136
错误 7 error C2661: “Font::Font”: 没有重载函数接受 4 个参数 f:\mfc类\gditest2\gditest2\gdiop.cpp 136
解决方案--------------------
using namespace Gdiplus;
或
Gdiplus::Font
Gdiplus::FontFamily( 该方法亲测可以用,限定)
本文针对MFC项目中出现的Font实例化错误进行了详细的解析,并提供了有效的解决方案,通过使用Gdiplus命名空间或限定FontFamily的方法成功解决了问题。

5488

被折叠的 条评论
为什么被折叠?



