On Tue, January 14, 2014 09:24, Sven Barth wrote: > Am 14.01.2014 00:12 schrieb "Ewald" <ew...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal