Access to printer port in vc??? 
Author Message
 Access to printer port in vc???

 How can I access a interface on my lpt in VC?

 I have some functions in C but they uses:
  inport( ) and outport ( )

 How can I adapt this?



Sun, 05 Oct 2003 17:49:46 GMT  
 Access to printer port in vc???
you can do this by the following
1- type #include "conio.h"
2-use "_outp(port,no);" instead of Outp(port,no); in c++
3-use "_inp(port);" instead of use inp(port); in c++


Mon, 27 Oct 2003 18:42:12 GMT  
 Access to printer port in vc???

says...

Quote:
> you can do this by the following
> 1- type #include "conio.h"
> 2-use "_outp(port,no);" instead of Outp(port,no); in c++
> 3-use "_inp(port);" instead of use inp(port); in c++

...and then run your application under Windows NT or 2k, and watch it
crash and burn!

You're far better off opening the printer port with CreateFile.  If
you're actually dealing with a printer, MSDN has a RawDataToPrinter
function you might want to look up.

--
    Later,
    Jerry.

The Universe is a figment of its own imagination.



Tue, 28 Oct 2003 01:23:09 GMT  
 Access to printer port in vc???
something about priveledged instructions comes to mind ...


Quote:
> you can do this by the following
> 1- type #include "conio.h"
> 2-use "_outp(port,no);" instead of Outp(port,no); in c++
> 3-use "_inp(port);" instead of use inp(port); in c++



Sun, 16 Nov 2003 07:51:29 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Access to printer port in vc???

2. Access to printer port in vc???

3. Printer Port , Timing of printer port, Urgent ,LaserShow

4. Trouble accessing printer port

5. accessing the Printer Port under WIN95

6. Accessing a printer port

7. (Directly) access the printer port (LPT1)

8. Printer port direct access

9. Printer-Port direct access?

10. access violation due to bad CString copy ctor when porting from VC6 to VC7 (VC++.NET)

11. Accessing IO ports in VC

12. Serial port access in VC ++, Help!

 

 
Powered by phpBB® Forum Software