• Advertisement
Sign in to follow this  

::AddFontResource () question

This topic is 4720 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Why does this work: AddFontResource ("res\\xo.ttf"); and this not work: AddFontResource (MAKEINTRESOURCE (IDF_FONT)); with the follpwing line in the .rc file IDF_FONT FONT "res\\xo.ttf" According to my thinking they should both work, but for some reason the second way always fails. Thanks in advance for your help.

Share this post


Link to post
Share on other sites
Advertisement
Because its not designed to do that.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_9r51.asp

Share this post


Link to post
Share on other sites
Now my last problem -- according to the documentation I should be able to use AddFontMemResourceEx (...):
Quote:

Requirements
Windows NT/2000/XP: Included in Windows 2000 and later.
Windows 95/98/Me: Unsupported.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.



I'm running XP SP2 with VS.NET 2003, linked to gdi32.lib, and I included windows.h in the program but I get -- 'AddFontMemResourceEx': identifier not found, even with argument-dependent lookup. Anyone know why this would happen???

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement