PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How do I load a VGA font file from disk?

How would I do the same as below but load the .fnt file from disk rather than from a resource?

Thanx in advance.


Code:
HRSRC hResInfo = NULL;
HGLOBAL hResource = NULL;
hResInfo = FindResource(_Module.GetModuleInstance(), MAKEINTRESOURCE(IDR_FNT_FUTURE), TEXT("FONTS"));
hResource = LoadResource(_Module.GetModuleInstance(), hResInfo);
g_Font = (unsigned char*)LockResource(hResource);
Nevermind, I got it! :)
jweldin wrote:Nevermind, I got it! :)


It is usually good practice to post your solution when you find it. Otherwise other people reading your post here will have to ask the same question again.
Oh, I am going to... was way too tired to format code or do anything but crash to sleep. :) I am planning on posting it tonight when I am at home again.