Solved

Parallel port I/O

Posted on 2010-09-15
8
424 Views
Last Modified: 2012-05-10
Can I use parport.sys to send and receive data by writing a driver with visual basic.net?
0
Comment
Question by:Dustylozen
[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
  • 3
8 Comments
 
LVL 27

Expert Comment

by:Dr. Klahn
ID: 33684752
0
 
LVL 7

Accepted Solution

by:
lewisg earned 500 total points
ID: 33685034
0
 

Author Comment

by:Dustylozen
ID: 33685676
I can study this and get started.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:Dustylozen
ID: 33688152
lewisg,   VC++ express fails to upgrade the code when I try to load it.
0
 
LVL 7

Expert Comment

by:lewisg
ID: 33688747
Inpout32.dll is a dynamically linked library. You don't load it in the programming IDE you first declare and then call it from your code. Something like this:

first the declares:
Public Declare Function Inp Lib "inpout32.dll" _
Alias "Inp32" (ByVal PortAddress As Integer) As Integer

Public Declare Sub Out Lib "inpout32.dll" _
Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)

Public Declare Function Inp32 Lib "DllPort.dll" (ByVal PortAddress As Integer) As Integer

then an output call:
Out (Val("&H378"), Val(D))

In your question you refer to visual basic.net but now you comment about using VC++ express. These are two different programming languages. I'm fairly sure Inpout32.dll will work in either but the syntax will be different.

Here is a fairly decent tutorial on how to use inpout32.dll in VB 2005 Express Edition:
http://www.codeproject.com/KB/vb/Inpout32_read.aspx

Test code for various programming languages can be found here:
http://www.hytherion.com/beattidp/comput/pport.htm

To be more specific I will need to know exactly what you are trying to accomplish and what IDE you are using.

0
 

Author Closing Comment

by:Dustylozen
ID: 33693090
I used this information along with the other solution to get a working answer.
0
 

Author Comment

by:Dustylozen
ID: 33693197
lewisg:
I figured that out by looking at several examples.  I had the error " unable to load inpout.dll " on the VB example until I put the full path in the Declare statement.  
Thanks much  
0
 
LVL 7

Expert Comment

by:lewisg
ID: 33693856
"until I put the full path in the Declare statement.  "

The other things that usually work are:

1. Put the DLL in the windows\system directory and register the file with something like:
regsvr32 c:\windows\system\inpout32.dll

2. Use the app.path or it's equivalent in the declare statement.
http://forums.devx.com/showthread.php?t=148101

0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 8.1 Enterprise Pauses Frequently 27 155
CPU speed comparison help needed 2 81
Hostname printer change 8 104
Business Lenovo Laptops- 2016 or later models 17 34
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 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