Solved

Parallel port capture

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Enable Clear Text in Win 8.1 7 49
Dialogbox API leak? 18 117
What is MicroStrategy.NET? 2 90
Graph API & MS Apps 1 81
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.  …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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