HP Encoder PDF417 manual Compiling and Running the sample ILE C Program

Models: Encoder PDF417

1 33
Download 33 pages 29.79 Kb
Page 31
Image 31

PDF417

Installation Guide

Following is a pictorial diagram of how the pieces fit together using RPG:

 

RPG III (RPG/400)

 

 

 

 

 

Compile

 

 

OPM

 

 

 

Program

 

w/opt 14

 

 

 

 

 

CALL

CALL

PDFINIT

 

PDFENCOD

 

 

 

 

RPG IV (ILE)

 

 

 

 

Compile

 

ILE

 

 

Program

 

w/opt 15

 

 

 

 

CALLB

(CRTPGM to bind)

PDFvv/PDFvvSRV

Service Program

(PDFvv, or whatever library PDFvvSRV is installed in MUST be in the *LIBL)

C Language

To compile and link the sample program for C:

NOTE: Compiling and testing the C sample is not a required step for installation of the PDF417 Encoder. It is recommended if you will be using the C API.

Compiling and Running the sample ILE C Program

The sample ILE C program links with the PDFVxxxx/PDFVxxSRV service program. The source for the sample program is in PDFVxxxx/QCSRC(CPDF). You must first compile the C module:

CRTCMOD MODULE(PDFVxxxx/CPDF)

SRCFILE(PDFVxxxx/QCSRC)

SRCMBR(CPDF)

REPLACE(*YES)

Now create the ILE program (i.e., link it with the PDF417 service program):

CRTPGM PGM(PDFVxxxx/CPDF)

MODULE(PDFVxxxx/CPDF)

BNDSRVPGM(*LIBL/PDFVxxSRV)

REPLACE(*YES)

The program is now ready to run. It will generate a spool file named PDF417 to the default output queue:

NeoMedia Technologies, Inc.

Page 27

Page 31
Image 31
HP Encoder PDF417 manual Compiling and Running the sample ILE C Program