[Prev][Next][Index][Thread]
Example of dynamic loading of Dylan libraries available
-
To: info-dylan@ai.mit.edu
-
Subject: Example of dynamic loading of Dylan libraries available
-
From: Chris Double <chris@double.co.nz>
-
Date: Sun, 27 May 2001 17:30:02 -0400 (EDT)
-
Organization: None.
-
Sender: unknown@DOUBLE
-
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6
-
Xref: traf.lcs.mit.edu comp.lang.dylan:13322
I've put an example of dynamic loading of Dylan DLL's in the Dylanlibs
project CVS repository. Currently it's only available in CVS but I
thought others might be interested as the topic has come up
occasionally.
It starts with:
utilities/dynamic-library-protocol
This exports various generics and classes that a dynamic library has
to make available to allow registering information about the library
and unload/load callback functions.
An example of use is in:
examples/dynamic-library/dynamic-draw
This is a very simple program that allows drawing shapes on a
pane. The shapes are drawn by 'tools'. The tools can be hard coded in
the application or loaded/unloaded dynamically.
examples/dynamic-library/dynamic-draw-tool
This library contains a protocol for the tools, abstract class that
tools derive from, etc.
examples/dynamic-library/circle-tool
A simple tool that draws a circle. By running dynamic-draw, choosing
'Load Tool' and selecting the circle-tool.dll file, you get the
functionality loaded into the program.
Available from CVS at http://dylanlibs.sourceforge.net.
Hope it proves useful.
Chris.
--
http://www.double.co.nz/dylan