[Lazarus] RE : RE : Imposible call DLL (dylib) in Mac OSX Lion

Juan Sánchez aldeacity at gmail.com
Sun Aug 7 19:04:15 CEST 2011


It went all right with dynamic loading. "liknlib" gives me and error in
linking time. So I think runtime loading of dll is better. What I don't know
is what it's necessary rename functions with "_" at starting in Mac. Is it a
bug?
Regards.
Juan.
El 06/08/2011 19:11, "Ludo Brands" <ludo.brands at free.fr> escribió:
>
>
> With "nm" I get function name so it is on library.
>
>
>
> When you do a GetProcedureHandle for DllMessage, it will actually look for
> _DllMessage. That's the reason why GetProcedureHandle returns nil.
>
> If you declare your function as _DllMessage, loading at runtime will work
> also.
>
> Ludo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110807/958b75a2/attachment-0003.html>


More information about the Lazarus mailing list