[fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()
Sven Barth
pascaldragon at googlemail.com
Tue Jan 14 12:32:49 CET 2014
Am 14.01.2014 12:04 schrieb "Marco van de Voort" <marcov at stack.nl>:
>
> In our previous episode, Sven Barth said:
> >
> > Maybe an overload could be added to load functions by ordinal on Windows
> > and which simply returns Nil on other platforms.
>
> I thought the index feature originated in win3.x and was mostly considered
> deprecated by MS?
Names are optional while ordinals are not. If you look for example at
urlmon.dll or shlwapi.dll then you'll see quite some functions that are
exported by ordinal only (FPC can't do that as it always adds at least a ''
name). Also MSDN nowhere mentions that the NONAME attribute for Def files
is deprecated.
(also import by ordinal is slightly faster)
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140114/acde1613/attachment.html>
More information about the fpc-pascal
mailing list