473,385 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

looking for information to use inpout32.dll in VB6

133 100+
Hi guys,

Iam after some information/code examples on how to access parallel port from VB6 after a lot of digging i found i need to use inpout32.dll but no luck
on anything written in vb6, If anyone has any links or samples it would be
much appreciated.

Gobble.
Feb 26 '08 #1
4 13206
VBWheaties
145 100+
Hi guys,

Iam after some information/code examples on how to access parallel port from VB6 after a lot of digging i found i need to use inpout32.dll but no luck
on anything written in vb6, If anyone has any links or samples it would be
much appreciated.

Gobble.
Found this link doing what you need:
http://www.aaroncake.net/electronics/vblpt.htm
Feb 26 '08 #2
gobblegob
133 100+
Thanks VBWheaties , sorry but i forgot to mention that i want to access it under xp
Feb 26 '08 #3
Thanks VBWheaties , sorry but i forgot to mention that i want to access it under xp
Try to study this...

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,

Dim D as integer

'Send the integer to the parallel port using inpout.dll (The "&H378" tells it that it is a data port and the integer tell it wich pins to turn on)

Out Val("&H378"), Val(D)

I hope this give you a little idea...
Feb 27 '08 #4
ALSD
1 Bit
Take note that PCI- or USB-printerport adapters do not use the same register sets as "proper" LPT ports. INPOUTnn.DLL will not give results because the hardware between CPU and port is totally different.

ALSD,
Apr 21 '21 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Jason Daly | last post by:
I'm a freshman at college as a computer science major. I'm not sure it has what I want. Does anyone know if a major commonly exists in web design (focusing in server side languages)? I want to...
4
by: ÂÑTØÑ | last post by:
Hi, I was looking for a list of commands, but I can't find it. It's about commands you can type in the Internet Explorer adress bar, to get some information about a website. For instance...
1
by: vertigo | last post by:
Hello I want to write something to paraller port. I use windows XP and .NET, but my program is Win32 Application. First of all i could not find any sources of inpout32 library, i only found...
2
by: lxrocks | last post by:
I am looking for comparitive performance information for C-Compilers. More especially in the area of Float/Integer computes. Any information would be appreciated. tks
1
by: Troels Arvin | last post by:
Hello, publib.boulder.ibm.com has been rather unstable lately, so I figured I should install a local copy of the documentation web pages. I grabbed the Windows-version of the offline version...
0
by: AMDRIT | last post by:
I am looking for better concrete examples, as I am a bit dense, on design patterns that facilitate my goals. I have been out to the code project, planet source code, and microsoft's patterns and...
17
by: sloan | last post by:
I found these (2 links below). Does anyone know of any (neutral) reference sites for this kind of information? http://www.itjungle.com/tug/tug121406-story03.html Microsoft's Visual Basic 6 and...
10
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm trying to use the new VB 2008 right now and I want to know how to preset the company name and copyright informtion in Assembly Information. In my current VB 2005, company name...
6
by: orked | last post by:
hi, i make project control by parallel port, to make that i added file called inpout32.dll to system folder in windows folder but when i went to my project and make add reference error message...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.