ILOG CPLEX 11.0 User's Manual > Programming Considerations > Managing Input and Output > Controlling Message Channels > Example: Callable Library Message Channels

This example shows you how to use the ILOG CPLEX message handler from the Callable Library. It captures all messages generated by ILOG CPLEX and displays them on screen along with a label indicating which channel sent the message. It also creates a user channel to receive output generated by the program itself. The user channel accepts user-generated messages, displays them on screen with a label, and records them in a file without the label.

The complete program lpex5.c appears online in the standard distribution at yourCPLEXinstallation/examples/src. This example derives from lpex1.c, a program in the ILOG CPLEX Getting Started manual. There are a few differences between the two examples: