简体   繁体   English

:: AddFontMemResourceEx'尚未声明

[英]::AddFontMemResourceEx' has not been declared

I am following this tutorial Here to load font from resource. 我按照本教程这里从资源加载字体。 I have included the Wingdi.h header source , yet I am getting "::AddFontMemResourceEx' has not been declared" error while compiling, same error for ::RemoveFontMemResourceEx as well 我已经包含了Wingdi.h头文件 ,但是我在编译时没有声明“:: AddFontMemResourceEx”错误,同样的错误:: RemoveFontMemResourceEx也是如此

What could possibly be the cause ? 可能是什么原因?

OS: Windows 7, Compiler : MinGW 操作系统:Windows 7,编译器:MinGW

如果_WIN32_WINNT不是至少0x0500 (又名_WIN32_WINNT_WIN2K ), wingdi.h将不会声明AddFontMemResourceEx() )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM