K8055 and C++ Builder

Hi

Please could you help me.
I cant get my USB boards C++ program to compile.
Not even the program supplied with the board…
It gives me a massage “Unable to find package import dss.bpi”
along with lots of other packages it cannot find.
Please could some1 point me in the right direction.

Thanks
Ian Basson

Have you ever been able to compile anything in C++ Builder? Do you have other compilers installed that might interfere with C++ Builder (eg. mess up its PATH etc)?

Sounds like a problem with your compiler setup

All my other programs work with no problems its only when I try compiling the sample code suplied with the K8055.

Is there not maybe anything else I need to install or include to allow the program to talk through USB??

There in the original project file seems to be unnecessary packages listed.
Please do following change to the project file:
Open the file K8055_Demo.bpr in a text editor.
Replace the section starting with “<PACKAGES value=” with the following text:

<PACKAGES value="vcl.bpi rtl.bpi dbrtl.bpi adortl.bpi vcldb.bpi vclx.bpi bdertl.bpi vcldbx.bpi ibxpress.bpi cds.bpi dsnap.bpi bdecds.bpi qrpt.bpi teeui.bpi teedb.bpi tee.bpi dss.bpi teeqr.bpi visualclx.bpi visualdbclx.bpi dsnapcrba.bpi dsnapcon.bpi bcbsmp.bpi dclusr.bpi"/>
Save the K8055_Demo.bpr file and then run the C++Builder and try to compile this project.

:smiley: the program seems to be working with no errors. Ill only get around to testing it on my board next week, Ill be intouch.

Regards
Ian Basson

It Work!!

Ok next question please.

How do I address the outputs from a new form or a new program?
I see in the demo code they use “op[number]” to address the outputs but when I use this method it says “undefined symbol op”? My knowage on C++ is not the best and Im sure all I need to do is define the outputs somewhere?? Please could you help?

Regards
Ian Basson

You’ll find how the array of check boxes op[i] is created from the demo software files Unit1.h and Unit1.cpp (see FormCreate).
If you have problems to create/use array of check boxes then you may use normal check boxes instead.
You can control the digital outputs simply by the DLL functions.

Example:

int n = 3; ClearDigitalChannel(n);
or:

SetDigitalChannel(n);

or:

int k = 125; WriteAllDigital(k);

I made a project in C++ Builder 5, Now i am trying to run the same project in C++ builder 6
But when i try to build the project i get a window say " Unable to find package import qrpt.bpi ", I get the same message with lot of other files too.

I went to the *. bpr and copied the name of all the files in <PACKAGES value=, but it does not work.

Could any one help ???

What is the error message you are now getting?
Please see this thread for one other solution to this kind of problem: K8055_source_code

Hello!

I have the same problem,
But i already solve it…
Thanks for the help of someone there…
Thank you so much…
[color=#eeeeee]make money online[/color]