Solved

Parallel port capture

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

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

837 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