Compiling under Windows

This topic describes how to set environment variables and how to compile Natural Access applications in the Windows operating system environment. It includes information about:

The software is installed in the \nms directory.

Compiling

When compiling an application, direct the compiler to \nms\include for the Natural Access header files.

Define WIN32 on the compilation command line as follows:

 -Ic:\nms\include -DWIN32

You can add \nms\include to your Include environment variable.

Application linking

When linking for Windows, specify the path where the Natural Access import libraries (for example, cta.lib, vcemgr.lib) reside. The library files are in the \nms\lib directory. You can specify the path from the command line or add \nms\lib to your Lib environment variable.

When executing Natural Access applications, specify the path where the service manager dynamic link libraries (DLLs) reside. The DLLs are in the \nms\bin directory. You can specify the path from the command line or add \nms\bin to your Path environment variable by using the Control Panel system dialog box.

Refer to the demonstration programs for examples of compiling and linking applications.

Utility binaries

Utility binaries are stored in the \nms\bin directory. For more information about using utility binaries, refer to PRM service text parameter file encoder: pfencode.

Binaries of demonstration programs are located in the respective subdirectories in \nms\ctaccess\demos.

Configuration files

The \nms\ctaccess\cfg directory contains a sample configuration file (cta.cfg) used with the ctavers utility and with ctdaemon. Refer to the following topics for more information:

Prompts and voice files

The \nms\ctaccess\prompts directory contains prompt tables and voice files used by the demonstration programs.

When executing Natural Access applications, voice files can be found by the path specified by the CTA_DPATH environment variable.