Progress
External Program
Interfaces


Building and Running the Sample Windows NT
Named Pipes Application

This update describes a sample application consisting of a 4GL program and a C program that communicate through a Windows NT named pipe. Both programs can read and write the named pipe. The 4GL program accesses the sports database. When you run the application, you must tell one program to write the named pipe and the other program to read it.

If you tell the C program to write and the 4GL program to read,

The C program...
While the 4GL program...
  • Solicits a customer number from the
    user.
  • Writes the customer number to the
    named pipe.
  • Reads the named pipe, getting the customer number the user entered.
  • Retrieves the row of the customer with the specified customer number.
  • Displays the row of the customer table.

If you tell the 4GL program to write and the C program to read,

The 4GL Program...
While the C program...
  • Reads the entire customer table.
  • Writes the name of each customer to the named pipe.
  • Reads the named pipe into a buffer.
  • Displays the number of bytes read and the contents of the buffer.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095