Original Post
I have made a wrapper with OpenGL. I'm trying to make a font wrapper as well, but to select the font in order to convert it for use with OpenGL, I have to have the HDC variable. That variable is created and used in the OpenGL window wrapper and I really don't want the two classes communicating, nor do I want to have to pass the HDC from the calling function(usually WINMAIN) into the setup function of the font. Is there a way to get the HDC value. I have seen GetModuleHandle(), but when you use a NULL argument to that function, it returns the HINSTANCE. That would work, if using the HINSTANCE, I could get the HDC. Can this be done or will I have to pass the HDC into the setup function? Thanks in advance. [Edited by - kburkhart84 on September 27, 2005 8:34:17 PM]