home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
SAMPLES
/
DLLCALL.PRG
< prev
next >
Wrap
Text File
|
1994-04-15
|
951b
|
29 lines
// Using Borland BWCC.DLL DLLs
// This is an example of Dynamic Linking at RunTime!
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
BWCCMessageBox( 0, OemToAnsi( "Using Borland's BWCC DLL" ),;
OemToAnsi( "Hello World!" ), 0 )
BWCCMessageBox( 0, OemToAnsi( "(C) F. Pulpón y A. Linares, 1993-4" ),;
"FiveWin 1.5", 2 )
SndPlaySound( "Ahhhhh.wav", 0 )
return
//----------------------------------------------------------------------------//
DLL FUNCTION BWCCMessageBox( hWnd AS WORD, cText AS LPSTR, cTitle AS LPSTR,;
nType AS WORD ) AS WORD PASCAL LIB "BWCC.DLL"
DLL FUNCTION SndPlaySound( cFile AS LPSTR, nType AS WORD ) AS BOOL ;
PASCAL LIB "MMSYSTEM.DLL"
//----------------------------------------------------------------------------//