[fpc-pascal] stdcall without the ;

Michael Van Canneyt michael at freepascal.org
Wed Sep 23 14:11:06 CEST 2020



On Wed, 23 Sep 2020, Luca Olivetti via fpc-pascal wrote:

> Hello,
>
> I just compiled a lazarus project made in 2105 with fpc 3.2.0 and, while 
> it works here, it fails when the customer runs it.
>
> I noticed that I'm using a dll and the functions and callbacks are 
> declared stdcall (the platform is win32) but without the ;, i.e.:
>
> function OnAttach(handle: pointer; userdata: ptrint): Integer stdcall;
>
>
> instead of
>
> function CPhidgetInterfaceKit_create(var handle: Pointer):Integer; stdcall;
>
>
> The project compiles fine, could it be that the missing ';' causes the 
> stdcall not to be taken into account?

I doubt it because then it would also not run for you ?

Michael.


More information about the fpc-pascal mailing list