Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在按照本教程 在此处从资源中加载字体。我已经包含了 Wingdi.h 标头源,但在编译时出现“::AddFontMemResourceEx' 未声明”错误, ::RemoveFontMemResourceEx 也出现同样的错误
可能是什么原因?
操作系统:Windows 7,编译器:MinGW
wingdi.h不会声明AddFontMemResourceEx()if _WIN32_WINNTis not at least 0x0500(aka _WIN32_WINNT_WIN2K)。
wingdi.h
AddFontMemResourceEx()
_WIN32_WINNT
0x0500
_WIN32_WINNT_WIN2K