Solved

Parallel port capture

Posted on 1997-07-15
4
556 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 SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

810 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