Re: USB port use in FreePascal



Marco van de Voort schreef:
On 2006-03-04, michel <michel@xxxxxxxx> wrote:

Does anyone know if there is an easy way to control USB ports from
(MS-DOS) Free Pascal? I would like to read controls from a TouchScreen
device that is connected to a USB port.


I've no idea how access usb on plain dos. So the first step is to find _any_
code that does this from dos, and preferably 32-bit, and then convert it.

So e.g. you could look if there is a libusb for DJGPP. There are
multiple header conversions so you can access it from FPC. e.g.

http://www.johann-glaser.at/projects/libusb.pas

Since this is uncharted territory, it might not be for the faint of heart.

I made a touchscreen application long time ago for dos. The screen came with a mouselike driver for dos. Most manufacturers will only make windows drivers nowadays. Try running it in a dosbox

There is a unit USB4DOS out there somewhere, but don't expect to much from it.

-- Femme
.



Relevant Pages

  • net use command, a DOS application, and a USB printer
    ... Someone has asked me how to print from a DOS application to a printer. ... Parallel port converter, but we don't know how to send the print jobs to ... knew of any way to send DOS print jobs to a USB port. ... liable for problems or mishaps that occur from the reader using advice ...
    (microsoft.public.windowsxp.hardware)
  • problem mapping LPT port to USB printer
    ... that runs the DOS application has the USB printer, ... before running the DOS application - this remaps the LPT2 port ... sharename, it acts like it works upon closing the config window, but if we ... redirected to the USB port? ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: DOS Printing Question
    ... understands DOS). ... will I be able to print from the DOS program to the dot-matrix printer if ... it's connected to the USB port on the laptop using this converter? ... the printer port and send it to the USB port without any extra hardware. ...
    (comp.os.msdos.misc)
  • Re: printing to LPT1 from DOS
    ... >I have a DOS application that can only print to LPT1. ... >I use a notebook with a printer plugged in to USB port. ... >Can I somehow re-route a command to print to LPT1 from the DOS program into ...
    (microsoft.public.windowsxp.help_and_support)