home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vp21beta.zip
/
AEXMPSRC.RAR
/
DLL
/
TSTVPDLL.PAS
< prev
Wrap
Pascal/Delphi Source File
|
2000-08-15
|
1KB
|
45 lines
{█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█}
{█ █}
{█ Virtual Pascal Examples. Version 2.1. █}
{█ Simple DLL example █}
{█ ─────────────────────────────────────────────────█}
{█ Copyright (C) 1996-2000 vpascal.com █}
{█ █}
{▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀}
library TstVpDll;
{$Delphi+,OrgName-}
{$Linker
DESCRIPTION 'Sample Virtual Pascal DLL'}
procedure TestProc1;
begin
WriteLn('DLL: Now in TestProc1');
end;
procedure TestProc2;
begin
WriteLn('DLL: Now in TestProc2');
end;
function TestFunc(a, b: Longint): Longint; cdecl;
begin
Result := a + b;
end;
procedure TestProc3; export;
begin
WriteLn('DLL: Now in TestProc3');
end;
exports
// Specify which entry points to export
TestProc1 index 1,
TestProc2 name 'Test2',
TestProc3,
TestFunc name 'TestFunc';
initialization
end.