[fpc-pascal] How to call lib routines with cdecl calling convention with win32 app?

Jonas Maebe jonas.maebe at elis.ugent.be
Sun May 31 20:39:09 CEST 2009


On 31 May 2009, at 20:05, Coco Pascal wrote:

> I tried
> function Y_Odd(const AValue: Int64): LongInt; cdecl; alias:  
> '_Y_Odd'; export;
> and
> function Y_Odd(const AValue: Int64): LongInt; cdecl; alias:  
> '__Y_Odd'; export;
> but still I get the message entrypoint of 'Y_Odd' could not be found  
> in 'libyfbudf.dll'

Then you may want to use some tool to look at the name of the entry  
point in the dll for the cdecl case, and compare it to the stdcall  
case. Since I don't use Windows, I cannot help you with this.


Jonas



More information about the fpc-pascal mailing list