[fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

Sven Barth pascaldragon at googlemail.com
Tue Jan 14 14:58:42 CET 2014


Am 14.01.2014 14:02 schrieb "Tomas Hajny" <XHajT03 at hajny.biz>:
>
> On Tue, January 14, 2014 09:24, Sven Barth wrote:
> > Am 14.01.2014 00:12 schrieb "Ewald" <ewald at yellowcouch.org>:
> >> On 13 Jan 2014, at 23:06, Fred van Stappen wrote:
> >>
> >>> The SoundTouch.dll uses index to call the procedures.
>  .
>  .
> > No, ordinals are not supported on non-Windows (or more precisely non-PE)
> > systems.
>
> This statement certainly does not cover all FPC targets, because ordinals
> are also used at least under OS/2 (which is a "non-PE" system).
>
>
> > The Windows version of dynlibs directly uses the Windows functions. The
> > only difference is that it takes an AnsiString as argument and thus one
> > can't pass an ordinal value.
> >
> > Maybe an overload could be added to load functions by ordinal on Windows
> > and which simply returns Nil on other platforms.
>
> ...except OS/2 (and possibly some others)... ;-)

Ok, ok, but at least Unix systems don't support ordinals :P

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140114/d5bf858a/attachment.html>


More information about the fpc-pascal mailing list