' ************************************************** ' * _w95robot.inc * ' * meta compiler file for GMT * ' * robot control compilation * ' * running on windows95 PC's * ' * No support for National Instruments devices * ' ************************************************** ' 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. ' REMARK: Running GMT under Windows 95 on a 80486 processor works ' although speed may suffer. ' Following dll's from later windows versions should be present ' in the \windows\system directory, although they are not used ' nor called by GMT. ' WINSOCK.DLL ' WS2_32.DLL ' WS2HELP.DLL ' Although USB ports are not supported under Win95, GMT must have the ' AW_USB DLL's in the appropriate directory in order to start up. ' This metafile was created to allow an old laptop computer (Hera) to steer ' robots such as ,,,. #COMPILE EXE "robots95" #RESOURCE "resource\gmt_slagwerk.pbr" '%Debug = 1 %gmt_w95 = 1 %gmt_robots = 1 %gmt_slagwerk = 1 #IF %DEF(%gmt_slagwerk) %gmt_thunder = 1 ' includes code for http://www.logosfoundation.org/tromp/thunderwood.html %gmt_rotom = 1 ' includes code for http://www.logosfoundation.org/tromp/rotomoton.html #ENDIF ' ---------------------------------------------------------------------------------------- ' 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: ' for PBWIN 7.0 #INCLUDE "..\winapi\g_win.inc" ' Win32API - version 12/2001 ' 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 #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 PB-DLL 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_robo.bi" #IF NOT %DEF(%gmt_w95) #INCLUDE "g_net.bi" #ENDIF #INCLUDE "gmt.bi" ' kernel procedure declaration file $kompilfile = $kompil_robots95 ' not $kompil_slagwerk '"slagwerk" ' this compilation takes 4.328 MByte to run. ' ******************************************************* ' conditional compilation block II - application code ' ******************************************************* ' 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 V6.9 '#INCLUDE "..\winapi\nidaqerr-pb.inc" 'constants for error handling procs. and msg's. #INCLUDE "g_h.bi" #INCLUDE "g_mm.bi" #INCLUDE "g_mm.inc" #IF %DEF(%gmt_thunder) #INCLUDE "robots\thunderwood\thunder.bi" #INCLUDE "robots\thunderwood\thunder.inc" #ENDIF #IF %DEF (%gmt_rotom) #INCLUDE "robots\rotomoton\Rotomo.bi" #INCLUDE "robots\rotomoton\Rotomo.inc" #ENDIF #INCLUDE "robots\robots.inc" 'new 27.06.2002 '[EOF]