home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
INCLUDE
/
DLL.CH
< prev
next >
Wrap
Text File
|
1994-05-25
|
1KB
|
35 lines
#ifndef _DLL_CH
#define _DLL_CH
#define VOID 0
#define BYTE 1
#define CHAR 2
#define WORD 3
#define INT 4
#define BOOL 5
#define HDC 6
#define LONG 7
#define STRING 8
#define LPSTR 9
#define PTR 10
#define _DOUBLE 11 // conflicts with BORDER DOUBLE
// uufff!!! :-)
#xcommand DLL [<static:STATIC>] FUNCTION <FuncName>( [ <uParam1> AS <type1> ] ;
[, <uParamN> AS <typeN> ] ) ;
AS <return> [<pascal:PASCAL>] LIB <*DllName*> ;
=> ;
[<static>] function <FuncName>( [<uParam1>] [,<uParamN>] ) ;;
local hDLL := LoadLibrary( <(DllName)> ) ;;
local cFarProc ;;
local uResult ;;
if hDLL != 0 ;;
cFarProc = GetProcAddress( hDLL, <(FuncName)>, [<.pascal.>], <return>, <type1> [,<typeN>] ) ;;
uResult = CallDLL( cFarProc, [<uParam1>] [,<uParamN>] ) ;;
FreeLibrary( hDLL ) ;;
end ;;
return uResult
#endif