What exactly do you want to know?
Well, go to File -> New -> Other and choses DLL wizard.
Next you'll see this:
library Project1;
{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }
uses
SysUtils,
Classes;
{$R *.res}
begin
end.
Now we want to implement a max function for integer values:
library Project2;
// You can delete the comments as well as the uses clause
// because we don't need the units for this example.
//uses
// SysUtils,
// Classes;
{$R *.res}
// IMPORTANT: Don't forget to add stdcall
function Max(Value1, Value2: Integer): Integer; stdcall;
begin
result := value1;
if value2 > value1 then result := value2;
end;
exports
Max;
begin
end.
Do you want to use the DLLs as TPC or load them via Load DLL in DB?
Ogres have layers.