How get private Device context GDI in QB64?
#5
I found myself in a strange situation. Everything is declared. The constants are correct. The problem mentioned - the first three functions declared all returning non-null values, so I assume that's correct. The last wglUseFontBitmapsA function called from the OpenGL32.dll library sometimes returns zero (failure), sometimes returns 1 (everything OK), but the screen is still black. I do not know what do with it. I have done everything I can think of and the result is a black screen. Um. Well, that's OpenGL.

I tried using GetDC and also GetWindowDC to get the DC, it works. Then is declared CreateFont, it returns a handle to the font. Next is declared a SelectObject, it also returns a handle. And that last wglUseFontBitmapsA function from OpenGL killed it all  Big Grin really it is.....  Angry  


Thank for reply  Wink


Reply


Messages In This Thread
RE: How get private Device context GDI in QB64? - by Petr - 04-06-2023, 07:56 PM



Users browsing this thread: 2 Guest(s)