[fpc-pascal] accessing hardware ports in FPC

Daniël Mantione daniel.mantione at freepascal.org
Tue May 22 10:59:49 CEST 2007



Op Tue, 22 May 2007, schreef Alexey Pavluchenko:

> Hello Felipe,
> 
> Tuesday, May 22, 2007, 10:48:54 AM, you wrote:
> 
> > On 5/18/07, Daniël Mantione <daniel.mantione at freepascal.org> wrote:
> >> Can you please implement a ports unit for Windows then?
> 
> > This requires writing a Device Driver for NT.... and later you need to
> > take it with your executable somehow.
> 
> It's already written. Visit http://www.logix4u.net.
> I'm not sure it will work with Vista though.
> 
> This page also may prove useful:
> http://www.rdrop.com/~cary/html/device_driver.html.

Perhaps the best approach is to make such a port unit abort the program if 
it runs on WINNT and the device driver isn't found.

Daniël


More information about the fpc-pascal mailing list