Hi
I was messing around with this WinIO library a while back.
rem You might try this WinIO.dll from http://www.internals.com
rem winiotest.dba
rem
Port as WORD
Port = 0x378
PortVal as DWORD
PortVal = 0
FormFeed = 12
#constant WINIODLL 1
load dll "winio.dll",WINIODLL
Ret = call dll(WINIODLL, "InitializeWinIo")
print "InitializeWinIo = ";Ret
rem RetPortVal was added to winio.dll to return the value
rem instead of passsing the address of a variable.
PortVal = call dll(WINIODLL, "RetPortVal", Port, 4)
print "RetPortVal = ";PortVal
Ret = call dll(WINIODLL, "SetPortVal", Port, FormFeed, 4)
print "SetPortVal = ";Ret
Ret = call dll(WINIODLL, "ShutdownWinIo")
print "ShutdownWinIo = ";Ret
delete dll WINIODLL
wait key
But I think you may be looking for interupt driven serial io, in which case you would need a serial io library converted to a plugin.
It would probably be best to make the plugin device specific.
DBP App --> MyDevicePlugin.dll --> SerialIO.lib
You might be able to use this Win32 API wrapper to make a plugin.
http://www.bbdsoft.com/win32.html
You might check the tech page and see if DBS is willing to make a plugin to support your device.
http://www.darkbasicpro.com/tech.php
Hope it helps
Dave...