473,498 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem using LPT port.

7 New Member
hello,
i want to send data to parallel port by writing a class in visual C++. i have code available in C to send the data to parallel port.it uses instruction outportb().
my system is windows xp 64 bit.it does not supports instruction outportb().

can any one tell me how can i send data to parallel port by doing a programming in VC++.?do i need to write a DLL for same? if yes then how can i write DLL for that? is it readily available from internet on any link?


Thanks in advance

With regards,
vamx
Nov 29 '07 #1
2 2493
numberwhun
3,509 Recognized Expert Moderator Specialist
hello,
i want to send data to parallel port by writing a class in visual C++. i have code available in C to send the data to parallel port.it uses instruction outportb().
my system is windows xp 64 bit.it does not supports instruction outportb().

can any one tell me how can i send data to parallel port by doing a programming in VC++.?do i need to write a DLL for same? if yes then how can i write DLL for that? is it readily available from internet on any link?


Thanks in advance

With regards,
vamx
Since this is more of a C++ question than a Windows question, I will move this over there.

Regards,


Jeff
Nov 29 '07 #2
weaknessforcats
9,208 Recognized Expert Moderator Expert
There are two issues here: a) what data is going to LPT1 and b) what is plugged into LPTI to accept the data ??

You just can't send data to LPT1. The data has to be compatible wioth the device connected to LPT1. If it's an HP Leaserjet 4M, then you need to send data to the HP parallel port driver for that printer. Some printers like these require you write in PostScript.

If yo have connected your own device to LPT1, then you need to write a parallel port driver (see MSDN) to accept that data and push it out to the device on the correct pins.
Nov 29 '07 #3

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

Similar topics

0
583
by: I.P. | last post by:
------=_NextPart_000_03FF_01C368A4.75720DC0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hi, it's my story. I have two 4.0.14 mysql server on...
13
10965
by: Bob Greschke | last post by:
We have some equipment that communicates at 57600 baud RS232. The path from the PC is USB to a Phillips USB hub, then off of that a TUSB3410 USB/Serial converter. The driver for the 3410 chip...
9
2022
by: Harshit | last post by:
I am working on socket programming, encountered a new and strange problem today. I am using #define PORT 80, before main(), and I am calling PORT in one of the statments inside main(), I get an...
3
5017
by: collinm | last post by:
hi i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port void ledDisplayExist() { char msg={'\0', '\0', '\0', '\0',...
17
9173
by: Danieltbt05 | last post by:
just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query analyzer to search but no servers were found. Error message is as below Server : Msg17,level...
9
2685
by: RvGrah | last post by:
After much hair-pulling, I've finally found the answer to a problem that many are fighting with, difficulty connecting from Sql 2005 Server Management or VS2005 to a remote Sql Server running Sql...
2
1727
by: Peted | last post by:
I have 2 samples of code bellow that work fine at the moment the first routine loads an dll assembley and instantiates the type in the dll which is always a form, and creates a child form from...
3
15400
by: Mugunth | last post by:
Hi, I've a strange problem with serial port class of .NET Framework 2.0 I use com0com (Null Modem COM Port emulator) to emulate a virtual port. This application creates virtual com port pairs...
1
2950
by: Smita Prathyusha | last post by:
I am facing a problem in writing to COM1. I am using a Win 32 Console mode Program in VC++ the following is the code: If anyone can help me out it will be of great help : // SC_Using_Classes.cpp...
1
2468
by: MaheBytes | last post by:
I have been facing a problem with UDP socket programming. I have to reuse port number for two different IP address. I am actually using SO_REUSEADD. I have no problem with debug version but with...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.