Solved

Parallel port capture

Posted on 1997-07-15
4
555 Views
Last Modified: 2013-12-03
What should I do (with code please) to capture data sent from a DOS application (running in a DOS Box) to a parallel port from a Windows application (even "dir > lpt1") ? I want to process this data and then send them back to that parallel port.
0
Comment
Question by:incah
4 Comments
 
LVL 3

Expert Comment

by:vinniew
ID: 1400936
do some research on inp() and outp().


0
 

Author Comment

by:incah
ID: 1400937
These functions work obly on Win16. I am also interested in Win32.
0
 
LVL 1

Expert Comment

by:pcs071997
ID: 1400938
win32 process the I/O device as file. therefore you can use opnefile(), readfile().good luck.!!!i have no code.
0
 
LVL 2

Accepted Solution

by:
amartin030297 earned 150 total points
ID: 1400939
To do what you ask, you MUST (there is NO OTHER WAY):
   Write a VxD (Sounds scarry at first, but you can buy ($495)
VToolsD [www.vireo.com]) which write the entire VxD skeleton
for you.. (there are also other free progs out there that
write VxD's also, but I don't know their names)..

  VIOPort (a class in VToolsD) makes this about 5 lines of code.
class myVIOPort : Public VIOPort
....

ie.  new myVIOPort(0x378);

   --Aaron

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

912 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now