03-19-2005, 07:06 PM
Hi:
In winbase.bi the structure DEVMODE has a bug in the size of one of its members.
'dmBitsPerPel As Short << GOK Wrong data type
dmBitsPerPel As Integer
Also a note about Missing Declarations FreeBASIC v0.13
The following declarations are missing from FreeBASIC v0.13. I needed to add them to get OpenGL code to work with FreeBASIC, so I think they are generally useful additions to FreeBASIC.
'' Declare missing GL functions
DECLARE FUNCTION wglMakeCurrent ALIAS "wglMakeCurrent" (BYVAL hdc AS LONG, BYVAL hglrc AS LONG) AS LONG
DECLARE FUNCTION wglDeleteContext ALIAS "wglDeleteContext" (BYVAL hglrc AS LONG) AS LONG
DECLARE FUNCTION wglCreateContext ALIAS "wglCreateContext" (BYVAL hdc AS LONG) AS LONG
'' Declare missing Windows functions
DECLARE SUB WaitMessage ALIAS "WaitMessage" () 'should be in user32.bi
Thanks
Garvan
In winbase.bi the structure DEVMODE has a bug in the size of one of its members.
'dmBitsPerPel As Short << GOK Wrong data type
dmBitsPerPel As Integer
Also a note about Missing Declarations FreeBASIC v0.13
The following declarations are missing from FreeBASIC v0.13. I needed to add them to get OpenGL code to work with FreeBASIC, so I think they are generally useful additions to FreeBASIC.
'' Declare missing GL functions
DECLARE FUNCTION wglMakeCurrent ALIAS "wglMakeCurrent" (BYVAL hdc AS LONG, BYVAL hglrc AS LONG) AS LONG
DECLARE FUNCTION wglDeleteContext ALIAS "wglDeleteContext" (BYVAL hglrc AS LONG) AS LONG
DECLARE FUNCTION wglCreateContext ALIAS "wglCreateContext" (BYVAL hdc AS LONG) AS LONG
'' Declare missing Windows functions
DECLARE SUB WaitMessage ALIAS "WaitMessage" () 'should be in user32.bi
Thanks
Garvan