This article introduces an MFC class for controlling parallel ports.

Source: Internet
Author: User

 


Supported environments: Windows 9x, Windows ME, Windows NT, and Windows 2000

Introduction: This class allows you to use low-level port I/O functions to read and write port data. The example program uses this class to implement simple C/S file transmission between PCs through "PLT1.

Features:

  • C ++ interface is simple and easy to use
  • SupportedUNICODE. You can configure the UNICODE compatibility feature when compiling a program.
  • Supports a wide rangeWindows platform, including Windows 9x, Windows ME, Windows NT, and Windows
  • It can be used for both console programs andGUI Program
  • Supports simple File Transfer

Note: When using this class of code, make sure that it is not in conflict with other programs that use conventional Win32 to call parallel ports.

Copyright:

  • You can include this source code in any product released in binary format (including commercial, shared, free, or other)
  • In (*. H, *. cpp) at the top of the copyright rules, you can modify the source code in any way
  • If you want to distribute source code with your own application, only the author's latest version can be distributed to ensure that the source code is unique.

Usage:

  • AddParallelport. cpp file, and # include parallelport. h file in any module to call this class.
  • Your code must supportThe MFC framework can be static or dynamic.
  • It is bestAfxtempl. h is added to the pre-compilation header to speed up compilation.
  • For implementation details of the example program, see source code
  • If you planUse the CParallelPort code in Windows NT/Windows 2000. It must be downloaded and installed.DriverLINX PortIO driver. This driver is free of charge.Driv

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.