Sign in to follow this  

::AddFontResource () question

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
Now my last problem -- according to the documentation I should be able to use AddFontMemResourceEx (...):

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this