Installing the dos api, Installing the windows nt api – Rockwell Automation 1747-PCIS API Software - Open Controller User Manual

Page 20

Advertising
background image

Publication 1747-UM002A-US-P - June 2000

1-8 Overview

Installing the DOS API

To install the DOS API, copy the following files to a directory you
create. The sample code files are optional, but they show how to use
the API functions.

Installing the
Windows NT API

To install the Windows NT API, use the setup utility:

1. Copy the contents of the API diskette to a temporary directory

on the open controllerÿs disk drive. (This step is not necessary if
a local diskette drive is connected.) The device driver file is
OCdriver.sys.

2. Select Run from the startup menu, then select the setup.exe

program from the temporary directory.

3. Click on OK to execute the setup utility. Follow the displayed

instructions. Click on Continue.

4. The next dialog lets you choose whether to install the API

executable alone (Runtime) or the API executable and the
development files (Runtime and & Development). To develop
applications with the API, you need the development files. To
only run applications, the development files are not necessary.
The development files consist of an include file, import library,
and sample code.

Choose the appropriate installation option and click on Next.

This file:

Contains:

ocapil.lib

API functions that you link to your application

ocapi.h

API header file that contains API-referenced structures

sample.c

Sample application program calling the API functions

sampleb.mak

Sample make file for the Borland C compiler

samplem.mak

Sample make file for the Microsoft C compiler

TIP

It is recommended that you exit all applications
before starting the setup process.

IMPORTANT

Runtime files may only be installed on a Windows
NT system. However, the development files may be
installed on either Windows NT or Windows 95
systems.

Advertising
This manual is related to the following products: