How can I read/write to the parallel or serial ports in XB?
There is not currently a built-in x-platform library for port communications. There are direct APIs that can be called from Win9x API functions. The following are the Win9x API functions used with communications resource (kernel32.dll). A communications resource is a physical or logical device that provides a single bidirectional, asynchronous data stream. Serial ports, parallel ports, fax machines, and modems are examples of communications resources. See kernel32.dec. BuildCommDCB BuildCommDCBAndTimeouts ClearCommBreak ClearCommError CommConfigDialog DeviceIoControl EscapeCommFunction GetCommConfig GetCommMask GetCommModemStatus GetCommProperties GetCommState GetCommTimeouts PurgeComm SetCommBreak SetCommConfig SetCommMask SetCommState SetCommTimeouts SetupComm TransmitCommChar WaitCommEvent The file input and output (I/O) functions (CreateFile, CloseHandle, ReadFile, ReadFileEx, WriteFile, and WriteFileEx) provide the basic interface for opening and closing a communications resource