jleslie48 Advanced User

Joined: 13 Feb 2007
Posts: 13
|
Posted: Tue Feb 20, 2007 4:54 pm Post subject: I'd like to start with the canned examples but missing stuff |
|
|
Well I want to try out the program ps2000.c in:
C:\Program Files\Pico Technology\Pico Full\Examples\PS2000
but I look at the source and it references,(from ps2000.c):
.
.
.
#include "ps2000.rch"
.
.
.
which is not there (from command prompt):
Volume in drive C has no label.
Volume Serial Number is 5ABC-932C
Directory of C:\Program Files\Pico Technology\Pico Full\Examples\PS2000
02/20/2007 11:41 AM <DIR> .
02/20/2007 11:41 AM <DIR> ..
03/28/2006 09:41 AM 582 open_unit.vi
02/13/2006 04:29 PM 2,431 PS2000.BAS
02/13/2006 04:29 PM 20,653 PS2000.c
11/08/2006 12:10 PM 458,752 PS2000.dll
02/13/2006 04:29 PM 174 ps2000.dpr
02/13/2006 04:29 PM 8,666 ps2000.FRM
06/15/2006 09:59 AM 8,863 ps2000.h
02/13/2006 04:29 PM 3,241 ps2000.inc
11/08/2006 12:10 PM 16,782 PS2000.lib
02/13/2006 04:29 PM 4,142 PS2000.rc
02/13/2006 04:29 PM 665 ps2000.vbp
02/13/2006 04:29 PM 81 ps2000.vbw
04/19/2006 12:43 PM 50,182 ps2000.vee
04/19/2006 12:43 PM 3,439 ps2000.vh
03/28/2006 09:41 AM 1,620 PS2000.vi
06/15/2006 09:59 AM 80,384 ps2000.xls
06/15/2006 09:59 AM 8,704 ps2000bc.lib
02/13/2006 04:29 PM 21,737 PS2000con.c
02/13/2006 04:29 PM 724 PS2000FM.dfm
02/13/2006 04:29 PM 4,913 PS2000FM.PAS
02/13/2006 04:29 PM 3,376 resource.h
03/28/2006 09:41 AM 848 setup_data_collection.vi
03/28/2006 09:41 AM 1,023 set_channel.vi
02/20/2007 11:41 AM 0 t.lis
24 File(s) 701,982 bytes
2 Dir(s) 56,029,659,136 bytes free
also the c file is not very explanatory on how to compile and link the program(from ps2000.c):
* To build this application
* set up a project for a 32-bit Windows application
* add this file to the project
* add PS2000bc.lib to the project (Borland C only)
* add PS2000.lib to the project (Microsoft C only)
* build the project
*
this is an inadequate description of the build procedure. there should be a file like this one for simple.c, (complete file, simple32._i_):
#
# Borland 5.5 makefile for SIMPLE.C [Win32]
# Links with WSC32BCB.LIB
#
# NOTE: Response file (simple.rsp) must NOT end with a carriage return, line feed.
#
# To use: "make -f simple32._i_"
#
CCFLAGS = -c -DWIN32 -IC:\Borland\BCC55\Include
simple.exe: simple.res simple.obj simple.def wsc32bcb.lib about.obj line.obj paint.obj sioerror.obj
ilink32 -aa -Tpe c0w32 @simple.rsp ,simple,simple, wsc32bcb.lib cw32 import32,simple32.def,simple.res
simple.res: simple.rc
brcc32 -IC:\Borland\BCC55\Include -dWIN32 simple.rc
about.obj: about.c about.h
bcc32 $(CCFLAGS) about.c
simple.obj: simple.c simple.h wsc.h
bcc32 $(CCFLAGS) simple.c
sioerror.obj: sioerror.c sioerror.h wsc.h
bcc32 $(CCFLAGS) sioerror.c
paint.obj: paint.c paint.h
bcc32 $(CCFLAGS) paint.c
line.obj: line.c line.h wsc.h
bcc32 $(CCFLAGS) line.c
are these available or can someone give a clear and COMPLETE, example of building and running these examples? |
|