#COMPILE EXE #option version4 #INCLUDE "c:\b\pb\winapi\win32api.inc" ' Win32API - version 31.03.2000 ' this includes way too much. You may want to build a smaller ' include. However, there is no performance penalty. Only ' elements that are called in, are compiled into the code. ' It only makes compilation a little bit slower. #INCLUDE "c:\b\pb\winapi\commctrl.inc" #INCLUDE "c:\b\pb\winapi\comdlg32.inc" #INCLUDE "c:\b\pb\winapi\mdi32.inc" #INCLUDE "c:\b\pb\winapi\richedit.inc" ' #INCLUDE "..\winapi\vbapi32.inc" ' not required here. - has %Null defined! ' #INCLUDE "..\winapi\wsock32.inc" ' not required here, but available to you.... '#INCLUDE "..\winapi\ddraw.inc" ' - in the works. '#INCLUDE "..\winapi\dsound.inc" ' - in the works - although we solved streaming without this! ' Next we declare all our own constants: #INCLUDE "c:\b\pb\gmt\gmt_kons.bi" ' only integer and string constants can be declared in PB #INCLUDE "c:\b\pb\gmt\gmt_type.bi" ' This declares all our own structures, user defined types #INCLUDE "c:\b\pb\gmt\gmt_glob.bi" ' This declares all variables shared across modules ' must appear after win32api: we use Win32 types as globals #INCLUDE "c:\b\pb\gmt\gmt_lib.bi" ' loads the library DLL, by including its declarations. ' C:\b\pb\gmt\gmt_lib.bas ' is the container for the source code in ' g_*.inc & g_*.bi ' gmt_lib.bas should be compiled with the PB-DLL compiler, ' as it contains all source code and resources. ' ---------------------------- #INCLUDE "c:\b\pb\gmt\gmt.bi" ' kernel procedure declaration file #INCLUDE "c:\b\pb\gmt\kristof\audexp\ae_kons.bi" #INCLUDE "c:\b\pb\gmt\kristof\audexp\ae_types.inc" #INCLUDE "c:\b\pb\gmt\kristof\audexp\ae.bi" GLOBAL hDlgMain AS LONG FUNCTION PBMAIN() AS LONG LOCAL track AS LONG msgbox "hello world" DIALOG NEW %HWND_DESKTOP,"[Grainy]",1,1,300,200 TO hDlgMain DIALOG SHOW MODELESS hDlgMain ' MSGBOX "dfj" track = GetFreeAudiotrack MSGBOX STR$(track) END FUNCTION