Delphi and Interfacing I/O Card

   I've installed an I/O card (Digital Input / Output Card) into my PC and I want to control it (such as get or out data ) but I don't know how to program my Delphi application (I can do it in Turbo Pascal 7.0 on Dos). My questions are ...
   1. What is the source program to control (Get or Out data) I/O card?
   2. Where can I buy the Delphi Programming Books about Interfacing I/O Card, what is it's name?
                                                                                Best regard.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

maybe something you can use here:

Regards Barry
Under Windows 3.X, Windows 95 and Windows 98, you may use the following code to read from and write to ports.

Under Windows NT you *MUST* write a Device Driver. This cannot be done in Delphi: the executable format is different. You would need Microsoft Visual C++ 5/6 AND the Driver Development Kit (DDK) that is part of Microsoft Developers Network. It's possible to write a device driver that works both under NT and Win/98.

function ReadPortB(Port: Word): byte;
    mov dx, Port
    in al, dx
    mov result, al

procedure WritePortB(Port: Word; Val: byte);
    mov dx, Port
    mov al, Val
    out dx, al

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.