Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - // this sample shows how to make a dynamic linking at runtime! http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
// This sample shows how to make a Dynamic Linking at RunTime!
// Using Borland BWCC.DLL DLLs

#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 nil

//----------------------------------------------------------------------------//

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"

//----------------------------------------------------------------------------//

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson