DanRRight
Joined: 10 Mar 2008 Posts: 2923 Location: South Pole, Antarctica
|
Posted: Sat Oct 30, 2010 9:14 am Post subject: mswin and opengl |
|
|
That's old problem not yet fixed in my code (most probably in others too).
I just did not use this functionality, waiting for really big necessity or some spare time to research it.
If i correctly understand docs, when we need some genuine MS functions like keyboard and mouse handling we have to include mswin instead of just pure clrwin (or clearwin.ins). But with OpenGL when i use mswin even in this simplest 3-line snippet code
use mswin
include <opengl.ins>,nolist
end
i get conflict with "Win32 API functions converted from wingdi.h" like WGLUSEFONTOUTLINES 'wglUseFontOutlinesA' (VAL,VAL,VAL,VAL &
&,VAL,VAL,VAL,REF):LOGICAL*4
(it's these functions which are at the end of opengl.ins file. If they are commented by default in your installation, you need to uncomment them. I do not remember if they are commented by default or i did that - i was searching for the reason of this conflict so many times). The compilation error states:
1/2447) STDCALL WGLUSEFONTOUTLINES 'wglUseFontOutlinesA' (VAL,VAL,VAL,VAL &
1/2448) &,VAL,VAL,VAL,REF):LOGICAL*4
*** Return type is expected.
Found
(VAL,VAL,VAL,VAL,VAL,VAL,VAL,REF):LOGICAL*4 (In include file D:\Program
Files\Silverfrost\FTN95\include\OPENGL.INS)
Please suggest how to fix that. TIA. |
|