For the FPC part:
[EMAIL PROTECTED] wrote:
What is the status of dynamic link libraries/shared objects:
1. Does FPC currently supports loading a shared library and calling a
function/procedure from a program ?
Yes,
- declaring functions/procedures as external 'name_of_dll'; (will create a
dependency in your executable)
- or loading a dll completely dynamically using the dynlibs unit; this will
need manual initialization of procedural variables (but you can load/unload
the library at any time in your program)
For an example of what I mean, compare e.g.
- the PostGreSQL unit (http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/packages/base/postgres/postgres3.pp?rev=20&view=markup) with
- the PostGreSQL dynamically loaded unit
(http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/packages/base/postgres/postgres3dyn.pp?rev=42&view=markup)
2. If (1), does FPC currently supports declaring and compiling shared
libraries ?
You can also create dll's yourself with FPC, yes.
Regards,
Bram
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives