2 - using the api, Introduction, Getting started – Rockwell Automation 1747-PCIS API Software - Open Controller User Manual

Page 23: Chapter 2, Using the api, Introduction -1 getting started -1, Chapter

Advertising
background image

1

Publication 1747-UM002A-US-P - June 2000

Chapter

2

Using the API

Introduction

This chapter describes the API and how to use its components. For
more information about developing applications using the API, see
chapter 3.

Getting Started

To use the API, make sure you have copied the following files to your
development directories. The sample files are optional.

Your application must link to the appropriate library (

ocapil.lib

for

DOS or

ocapi.lib

for Windows NT) and include

ocapi.h

. You can

copy the sample files and adapt them for your application.

This file:

Contains:

ocapil.lib

API functions that you link to your application (DOS only)

ocapi.lib

Import library in Microsoft COFF format (Windows NT
only)

ocapi.h

API header file that contains API-referenced structures

ocapi.dll

API DLL (Windows NT only)

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

Advertising
This manual is related to the following products: