HTBasic can execute certain types of Windows 32-bit DLLs (Dynamic Link Libraries) as CSUBs. This requires the addition of the DLL and calling information to the CSUB context.
CSUB Elements
A Windows CSUB is identical to a tokenized SUB program with the addition of Windows DLL information. The CSUB program context is made up of normal tokenized BASIC program lines with the supporting symbol, name, and dimension tables. There are no relocation table or object code sections. The DLL information section contains the name of the DLL and other CSUB calling information.
Dynamic Link Library Routines
The Windows 32-bit DLL is generated by a compiler and linker combination that makes DLLs compatible with the Win32 DLL format for Intel processors. The DLL can access all the standard C library runtime routines as well as those described in the Microsoft Win32 Programmer’s Reference, with the exceptions noted in the Microsoft Win32s User’s Guide. A DLL destined to be a CSUB can also use any of the routines documented in the "Display and Keyboard Routines" section to access the display and keyboard through HTBasic.