' ************************************************** ' * _namuda.inc * ' * meta compiler file for GMT * ' * This module should not contain any code * ' ************************************************** ' Metaconstants used as compiler directives: ' The value we give to these constants is unimportant. ' The fact of being declared, steers the compiler. ' We set the values to 1 (not %True, since at this point in the code, ' this declaration fails), to be able to compare them with %True. #COMPILE EXE "namuda" #RESOURCE "resource\gmt_namuda.pbr" '06.06.2010 '%Debug = 1 '%g_interfaces = 1 ' code module for human interfaces developed at Logos Research Labs %gwr = 1 ' without this, namuda does not get initialized after selection in the gwr menu. %namuda = 1 #INCLUDE "_NiDAQ.bi" '%NIDAQ = 1 '%g_NiDAQmx = 1 ' compiles and runs on \\No '%g_h_inc = 1 ' setting this constant forces us to load the g_nxh.library dynamically ' ---------------------------------------------------------------------------------------- ' The order in which the following includes appear is very important! ' Do not change unless you understand what you are doing. Keep all filenames lowercase. ' Includes for sourcecode libraries: #INCLUDE "..\winapi\g_win.inc" ' Next we declare all our own constants, using an include file: #INCLUDE "g_kons.bi" ' only integer and string constants can be declared in PB, for floats we use macros. #INCLUDE "g_type.bi" ' This declares all our own structures, user defined types #INCLUDE "gmt_glob.bi" ' This declares all variables shared across modules ' must appear after win32api: we use Win32 types as globals #INCLUDE "g_indep.bi" ' includes context independent functions and procedures. Source is in g_indep.bas #INCLUDE "g_file.bi" #INCLUDE "g_lib.bi" ' loads the library DLL, by including its declarations. ' g_lib.bas should be compiled with the PBWin compiler, ' as it contains all source code and resources. #INCLUDE "g_Wave.bi" #INCLUDE "g_wmix.bi" #INCLUDE "g_mus.bi" ' music library #INCLUDE "g_har.bi" #INCLUDE "g_net.bi" #INCLUDE "gmt.bi" ' gmt kernel procedure declaration file $kompilfile = $kompil_namuda '"namuda" ' ******************************************************* ' conditional compilation block II - application code ' ******************************************************* #IF %DEF(%NiDAQ) ' following includes only for NiDAQ devices. However, even without having NiDAQ devices on your system it should be ' harmless to include these declarations. (if alone, to avoid double definitions...) [26.09.2000] #INCLUDE "..\winapi\Nidaqcns-pb.inc" 'constants declaration V8.6 #INCLUDE "..\winapi\Nidaqerr-pb.inc" 'constants for error handling procs. and msg's. '#INCLUDE "g_h.bi" #INCLUDE "..\winapi\Nidaq32-pb.inc" 'proc.declarations V8.6 #ELSEIF %DEF(%g_NiDAQmx) '#INCLUDE "..\winapi\NIDAQmx_const.inc" ' compiles also without this '#INCLUDE "..\winapi\NIDAQmx_err.inc" '#INCLUDE "..\winapi\NIDAQmx_pb.inc" #ENDIF #INCLUDE "g_h.bi" ' this is of course required #INCLUDE "g_mm.bi" #INCLUDE "g_mm.inc" #IF %DEF(%gwr) #INCLUDE "g_glib.bi #INCLUDE "gmt_gwr.bi" #INCLUDE "gmt_gwr.inc" #ENDIF '#IF %DEF (%Debug) ' #INCLUDE "gmt_debu.inc" ' specific debugging/ demo code and tasks '#ENDIF '#IF %DEF (%g_interfaces) ' #INCLUDE "demos\g_interfaces.inc" '#ENDIF #IF %DEF (%Namuda) #INCLUDE "namuda\namuda.inc" #ENDIF '[EOF]