Sample Programs

Numerous sample programs are included in this package.

Sample programs for Windows can be built by using the Visual C++ nmake utility program to execute the provided makefile. The procedure is as follows:

  1. Open a Visual Studio terminal window.

  2. Change directory to one of the sample directories above. For example:

    cd c:\<acroot>\c\nas_dev\test_ts24008_msgs\Abort
  3. Execute nmake:

    nmake

The procedure would be similar on Linux except that the make utility would be used.

The result should be writer and reader programs. The writer should be executed first. It will encode a set of test data and write the record out to a message.dat file. The reader program can then be executed (via reader -v) to read the encoded file and decode the contents.