Solved

Comm. with parallel

Posted on 1997-12-10
3
173 Views
Last Modified: 2010-04-04
Hi everybody

I have a big problem, I have to send some commands through different pins on the paralleport to control a external device in a College project, I don't have a clue on how to do that. I only need to send commands, not receive any, if anybody know how to do that I would be very happy :-). I have said the question is easy... for you, I have tried for a long time, so please help.
0
Comment
Question by:koger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1353291
This is what I gave as an answer a while ago :

check out if it helps you.

 I can give you already this code. That's the easiest way. It's the way to print by bypassing windows. Don't think it's different to send your codes to your hardware.

                   var
                    f : TextFile;
                   begin
                    AssignFile( f, 'LPT1' );
                    Rewrite( f );
                     //
                     // do your printing here...
                     //
                    WriteLn( f, {codes});
                    CloseFile( f );
                   end;

(Following: I'm not sure if you need it)
If you plan on sending control codes to the printer, call this function immediat

 procedure SetBinaryMode (var F: Text); assembler;
                      asm
                      mov ax,$4400
                      les di,F
                      mov bx,word ptr es:[di]
                      int $21
                      or dl,$20
                      xor dh,dh
                      mov ax,$4401
                      int $21
                      end;

Look on the net for this file! --
                                 |

The Delphi Hardware Programmers's Archive
All of the files in this archive were collected from FTP sites to illustrate how to interface Delphi with IBM PC hardware. They are all public domain and should be used with care. I disclaim                    everything, this file is provided as a service to all who are interested.

GOOD LUCK! Alan Young
ajtech@apc.net

DELFHDWR.DOC Contains a MS Word document explaining how to interface Delphi with hardware. Contains references to the other files below.

VBAJGAME.ZIP Shows how to interface a Delphi DLL with Visual Basic. Accesses joystick port

->>>>>>>>>>>>>>>>>>>>>>>>>

LPCTRL.ZIP Shows how to program parallel LPT port in Delphi

->>>>>>>>>>>>>>>>>>>>>>>>>> Isn't this what you need?

HWPORT95.ZIP A PORT I/O Driver for Win 95. Use with Delphi as per document's instructions

loaddrv.ZIP CONTAINS LOADDRV program for WinNT. This is for loading the giveio.sys driver

DIRECTIO.ZIP Contains GIVEIO.SYS driver for WINNT.



                   Have fun,
                   c.u. ZifNab;
0
 

Author Comment

by:koger
ID: 1353292
Where did you said that I could find the files?
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1353293
Well, after my computer melt-down :-(. Everything was lost. Including these files, but!! I found them again :

http://Sunsite.icm.edu.pl/delphi/ftp/d10free/delfhdwr.zip

Don't let d10free let you think that it's only for D1. This file contains documents about delphi and hardware for ALL delphi versions

Have fun,
c.u. Zif;
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question