4.5. An Advanced Program Example

In this section, we provide an advanced example to call DLL functions developed in the Visual C++ domain to perform a serial port testing. This example includes both domain and application models.

4.5.1. Serial Port Testing Configuration

Serial ports range from COM1 to however many COM ports your system has. In some computers, only a couple of ports are available to the user. Generally, COM1 or COM2 can be used by the user, and others are used by the system hardware. The testing for serial ports can be divided into two catalogs; single port closed-loop testing and dual port closed-loop testing. Single port closed-loop testing connects the receiving terminal (pin-2 in DB-9 connector) and the transmitting terminal ...

Get Applications Interface Programming Using Multiple Languages: A Windows® Programmer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.