Technical reference
34
© 2005 Pico Technology Limited. All rights reserved.
USBTC08044-2
3.4
Programming
3.4.1
Introduction
We supply examples for the following programming languages:
3.4.2
C and C++
The C example program is a generic Windows application: it does not use Borland
AppExpert or Microsoft AppWizard. To compile the program, create a new project
containing the following files:
(Borland 32-bit applications)
(Microsoft Visual C 32-bit applications)
The following files must be in the same directory:
(All 32-bit applications)
C++ programs can access all versions of the driver. If
program, the PREF1 macro expands to extern "C": this disables name-mangling (or
name-decoration), and enables C++ routines to make calls to the driver routines using C
3.4.3
Delphi
The WIN sub-directory contains a simple program
and reads temperatures from the three channels. You will need the following files to build
contains procedure prototypes for the driver routines: you can
include this file in your application.
This example has been tested with Delphi versions 1, 2 and 3.