HP (Hewlett-Packard) B Network Router User Manual


 
Once compiled and linked, an executable file (.EXE) and object file (.OBJ)
are created in the current directory. You execute the program by typing and
entering the file name (with the .EXE extension).
Compiling in the Integrated Environment
You can compile, link, and run your C programs from the Microsoft®
QuickC© or Turbo C
++© integrated environments. To do so, add:
program_name.C
CLHPIB.LIB
to the program list (under the "Make" menu) in the Microsoft® QuickC©
environment. Under ’Environment’ in the "Options" menu, include paths to
the header files and external CLHPIB.LIB library. For example:
Include Files Directory: [c:\qc2\include]
Library Files Directory: [c:\qc2\lib]
In the Turbo C
++© environment, add the items:
program_name.C
TCHHPIB.LIB
to the project (under the "Project" menu). Under ’Directories ...’ in the
"Options" menu, include paths to the header files and external
TCHHPIB.LIB library. For example:
Include Directories
C:\TC\INCLUDE
Library Directories
C:\TC\LIB
C Program Format The general format of the C language programs on the example programs
disk is shown in the program listings at the end of this chapter. Generally,
the program flow is:
reset and clear the digitizer
configure the digitizer
check for configuration errors
trigger the digitizer and retrieve the readings
32 Gettin
g
Started Chapter 1