Hello,
the WIN32 API uses the stdcall calling convention, i.e. the stack pointer is adjusted by the called routine on return. This is not supported by GNU Pascal. Borland Pascal uses the keyword "stdcall" to specify this call format. This is needed for GNU Pascal, too.
Best regards, Peter Dietrich
Hello!
pdietrich@synstar.de wrote:
the WIN32 API uses the stdcall calling convention, i.e. the stack pointer is adjusted by the called routine on return. This is not supported by GNU Pascal. [...]
It is supported by GNU Pascal:
Unit Bar;
Interface
Procedure Bar; attribute ( stdcall );
Implementation
Procedure Bar;
begin (* Bar *) (* ... *) end (* Bar *);
end.
Hope this helps,
Peter
(BTW, the GPC mailing list is has moved from gpc@hut.fi to gpc@gnu.de some weeks ago.)