Test and Measurement Forum

I'd like to start with the canned examples but missing stuff

Post your C and C++ discussions here

I'd like to start with the canned examples but missing stuff

Postby jleslie48 » Tue Feb 20, 2007 4:54 pm

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?
jleslie48
Active User
Active User
 
Posts: 13
Joined: Tue Feb 13, 2007 3:20 pm

Postby ziko » Mon Mar 05, 2007 12:24 pm

Hi and thank you for you post.

As I mentioned to you on email before there is a mistake in the help file:

#include "ps2000.rch" should read #include "resource.h"

In terms of creating a make file for Borland 5.5 we do not have the resources available to guide you through this. We do provide you with the examples and necessary files to aid you with this.


Kind regards
Ziko

Technical Specialist
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots


Return to C and C++

Who is online

Users browsing this forum: No registered users and 1 guest