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

Tomas Hajny XHajT03 at hajny.biz
Tue Jan 14 14:01:33 CET 2014


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)... ;-)

Tomas





More information about the fpc-pascal mailing list