Progress
External Program
Interfaces


Running the Application

Before you run the application, you must compile and link the C program.

This procedure assumes that the name of the C executable is e-cpipe.

Follow these steps to run the application:

  1. In Windows NT, open (or go to an existing) command window, which resembles an MS-DOS box.
  2. Enter prowin32 -p e-4glpip.p -1 sports.
    • The Progress process starts.
  3. Enter e-cpipe.
    • The non-Progress process starts.
  4. In the C program, enter “1" to select reading a named pipe.
  5. In the 4GL program, select “Write to Pipe.”
    • The 4GL program writes the customer name in each row of the customer table to the named pipe.
    • The C program reads the named pipe and displays the customer names.
    • The programs terminate.

You can rerun the application. In the C program, enter “2" to select writing a named pipe, then enter a customer number. In the 4GL program, select “Read from Pipe.” The C program writes the customer number to the named pipe. The 4GL program reads the named pipe, retrieves the row of the customer table with the specified customer number, and displays the row’s columns.


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