On 6 Mar 2005 at 8:17, Frank Heckenbach wrote:
Prof A Olowofoyeku (The African Chief) wrote:
`FARPROC' it not a standard C name. I suppose it's defined in some system header as something like:
int (far *) ()
or
int (far *) (...)
It is described as a pointer. This is how it is defined: #define WINAPI __stdcall typedef int (WINAPI *FARPROC)();
Basically my first guess. (I thought `far' was necessary since it's called `FARPROC', but apparently the naming is only a remnant for 16 bit times.
Indeed. This existed under 16-bit Windows as well.
And I didn't think of `__stdcall'.)
Which gives a warning under GPC - and I am not sure what the warning means. The declaration:
TYPE TDllFunc = FUNCTION : Pointer attribute(stdcall);
gives this warning: "warning: `stdcall' attribute only applies to function types"
I thought I was applying the attribute to a function type? So what's with the warning?
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/