$dll
$filename "Sliders.dll"
includepath "$/inc/"
#include "RTL32.inc"
'#include "RTL64.inc"
// do nothing
@echo off
set filename=Sliders
:: get path of Oxygenbasic
:: -------------------------
set o2_dir=c:\OxygenBasic
if not exist %o2_dir%\gxo2.exe goto missing_dir
if not exist %filename%.o2bas goto missing_file
:: delete exe, dll
::----------------
if exist %filename%.exe del %filename%.exe
if exist %filename%.dll del %filename%.dll
:: build dll
::----------
echo gxo2: Building dll file
%o2_dir%\gxo2.exe %filename%_dll.o2bas
cd res
if exist %filename%.rc %o2_dir%\tools\goRC %filename%.rc
cd ..
if exist res\%filename%.res %o2_dir%\tools\linkres2exe res\%filename%.res %filename%.dll
:: delete obj, res
::----------------
echo deleting obj, res files
if exist res\%filename%.obj del res\%filename%.obj
if exist res\%filename%.res del res\%filename%.res
::build or run main file
::-----------------------
echo gxo2: Starting %filename%.o2bas
%o2_dir%\gxo2.exe %filename%.o2bas
echo .
echo Done ...
goto goodbye
:missing_dir
echo.
echo Please correct the path for o2_dir in this batch file
echo.
pause
goto goodbye
:missing_file
echo.
echo Error:
echo missing %filename%.o2bas
echo .
pause
:goodbye
which was the reason why I raised this issue to your attention at all.Code: [Select]#include "RTL32.inc"
'#include "RTL64.inc"