Pico Communications PicoScope 2105 Network Card User Manual


 
Technical reference
25
Copyright 2006 Pico Technology Limited. All rights reserved. PS2100044-1.0
3.6
Programming
3.6.1
C
There are two C example programs: one is a simple GUI application, and the other is a
more comprehensive console mode program that demonstrates all of the facilities of
the driver.
GUI example
The GUI example program is a generic Windows application - that is, it does not use
Borland AppExpert or Microsoft AppWizard. To compile the program, create a new
project for an Application containing the following files:
ps2000.c
ps2000.rc
and
ps2000bc.lib
(Borland 32-bit applications); or
ps2000.lib
(Microsoft Visual C 32-bit applications)
The following files must be in the compilation directory:
ps2000.rch
ps2000.h
and the following file must be in the same directory as the executable.
ps2000.dll
Console example
The console example program is also a generic Windows application - that is, it does
not use Borland AppExpert or Microsoft AppWizard. To compile the program, create a
new project for an Application containing the following files:
ps2000con.c
and
ps2000bc.lib
(Borland 32-bit applications); or
ps2000.lib
(Microsoft Visual C 32-bit applications).
The following files must be in the compilation directory:
ps2000.h
and the following file must be in the same directory as the executable.
ps2000.dll