# Re: 不经print manager 列印的问题, 请各高手帮忙

Posted by C.T.Wang on July 26, 1999 at 22:54:58:

In Reply to: Re: 不经print manager 列印的问题, 请各高手帮忙 posted by C.T.Wang on July 26, 1999 at 22:53:31:

Woops.. 忘了放说明, Sorry, 如下:
Inpout32.zip contains a DLL that enables direct reading and writing to I/O ports in 32-bit Visual-Basic programs running under Windows 95.

by Jan Axelson
Lakeview Research
Email: jaxelson@lvr.com
WWW: http://www.lvr.com

Important information and cautions:

1. Use this DLL at your own risk. Writing directly to hardware ports can result in system crashes, loss of data, and even permanent damage. Inpout32 was developed to allow access to parallel ports and other ports on custom hardware, but you can use it to attempt to access any hardware that is mapped as an I/O port. You've been warned!
2. Use this DLL only with 32-bit programs. 16-bit programs require a 16-bit DLL (inpout16.dll).
3. Windows 95 allows direct port reads and writes unless a VxD has control of the port and blocks access. Under Windows NT, direct port access is not allowed, and you must use a kernel-mode device driver.
4. For the latest parallel-port programming and interfacing information and tools, visit Parallel Port Central at:
http://www.lvr.com

***
Inpout32.zip contains the following files:

inpout32.txt
This file

inpout32.dll
A DLL that enables the use of Inp and Out routines in 32-bit Visual Basic 4 and Visual Basic 5 programs.
inpout32.bas
Visual-Basic declarations for Inp and Out

inpout32.vbp
Visual Basic 4 test project for inpout32. The project will also load into and run under Visual Basic 5.

inpout32.frm
Startup form for the test project
inpout32.dpr
Source code for inpout32.dll. The DLL was compiled with Borland's Delphi 2.0 Object Pascal compiler.

**

Follow Ups:

- 谢谢C.T.Wang,让我学到了如此有用的东东,但用了此dll后能否detect我的印表机是否OnLine?? Stephen 00:16:38 7/27/99 (2)
  - 加上以下控制项 James 00:40:10 7/27/99 (1)
    - 感谢james, 终于学会了....(无内文) Stephen 00:35:16 7/28/99 (0)