Solved

Parallel port capture

Posted on 1997-07-15
4
554 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

21 Experts available now in Live!

Get 1:1 Help Now