ADC 10 User's Guide Page 20

  • Download
  • Add to my manuals
  • Print
  • Page
    / 24
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 19
ADC-10,12,40,42 User's Guide18
Copyright © 1995-2007 Pico Technology. All rights reserved.adc1042.en-2
5
Programming Support
5.1
C
Windows
There are two C example programs: one is a very simple GUI application, and the
other is a more comprehensive console mode program that demonstrates all of the
facilities of the driver.
The GUI example program is a generic windows application- ie it does not use Borland
AppExpert or Microsoft AppWizard. To compile the program, create a new project for a
Windows Application containing the following files:
adc10tes.c
adc10tes.rc
either adc1032.lib (Borland 32-bit applications)
or adc10ms.lib (Microsoft Visual C 32-bit applications)
The following files must be in the same directory:
adc10tes.rch
adc10w.h
adc1032.dll (All 32-bit applications)
The console example program is a generic windows application- ie it does not use
Borland AppExpert or Microsoft AppWizard. To compile the program, create a new
project for a Console Application containing the following files:
adc10con.c
either adc1032.lib (Borland 32-bit applications)
or adc10ms.lib (Microsoft Visual C 32-bit applications)
The following files must be in the same directory:
adc10w.h
adc1032.dll (All 32-bit applications)
C++
C++ programs can access all versions of the driver. If adc10w.h is included in a C++
program, the PREF1 macro expands to extern "C": this disables name-mangling (or
decoration, as Microsoft call it), and enables C++ routines to make calls to the driver
routines using C headers.
5.2
Delphi
The Delphi programming example requires the following files:
adc10.dpr
adc10.inc
adc10fm.dfm
adc10fm.pas
Page view 19
1 2 ... 15 16 17 18 19 20 21 22 23 24

Comments to this Manuals

No comments