\xb\run\xb.dll and \windows\xb.dll
\xb\run\xb.dll is a library required by all standalone programs. \xb\run\xb.dll contains the same set of functions that support programs developed in the program development environment:
xst - standard library
xma - math library
xcm - complex number library
xin - sockets/network library
xgr - graphics library
xui - GuiDesigner library
Remember, \xb\run\xb.dll is the same as \windows\xb.dll .
debug then compile
Before you attempt to create a standalone executable or library, completely debug your program in the program development environment.
To convert your program into a standalone executable or library, select Run Assembly or Run Library from the PDE main menu. The PDE compiles your source program into an assembly language file of the same name, except with a .s suffix. At the same time, the PDE creates a .DEC file, a .def file, and a .mak file.
prog.x - your source program (replace prog with its real name)
prog.s - source program compiled into assembly language
prog.dec - type, function, constant declaration file
prog.def - import/export definition file required by library manager
prog.mak - makefile directs tools to create standalone .exe or .dll
You can also compile a program directly from a DOS window with the following command lines:
xb prog.x ' for standalone executable
xb prog.x -lib ' for standalone executable library
To create your standalone program or library with Win32 tools:
Click the MS-DOS icon to start a DOS window. Then, enter in the DOS window...
cd \xb to set the current directory to the program development directory.
nmake -f prog.mak to create standalone executable run\prog.exe or library prog.dll .
You can rename standalone executables, but never copy a standalone executable into the development directory and attempt to run it there. It will runtime link to the wrong xb.dll and the program development environment will start instead of your program !!!
prog.exe / prog.dll is your standalone executable program/library. prog.exe / prog.dll contains everything specific to your program/library, but not other functions that support all programs/libraries. They're in \xb\run\xb.dll or c:\windows\xb.dll - and any other libraries your program imports.