I am using the free Borland command line compiler and I can't get even the test file to build(compile works but the linker throws unresolved externals for all the driver functions).
I have tried absolutely loads of things, amongst others:
> made a config file for the linker called ilink32.cfg and included a link to the folder which contains all the lib's and dll's.
> used the -L command line parameter to specify where the lib files are
> tried compiling as a dos app and a windows app
> writing a very simple program which only uses the adc11_get_driver_version function and prints the result
all of which have not worked. How do I make the compiler/linker aware of the lib's and dll's?
My C++ is working fine as I have written quite a few test programs with it, I just can't do anything with this adc11 problem!
My Borland compiler is v5.5
Thanks for any help
btw, I did try and register with this forum, but after putting my registration details in I just get a blank 'Information' screen.
What lib files are you using? You need to include the lib file into the solution for it to work. The dll should be in the same directory as the project but does not need to be included in the project as the lib file should do this.
As I am not familiar with Borland compilers I do not know exactly how the lib files should be included however it is important that they are and that the correct one is used. If you have a choice between adc11.lib and adc11ms.lib then you need to use the adc11.lib file. If you have a choice between adc11.lib and adc11bc.lib then you need to use adc11bc.lib. This is because the different files relate to different compilers.
The lib file I'm supposed to use is adc1132.lib I think. The documentation says that's for Borland 32 bit apps. That right?
As far as including this file, all I have to do is use the command line parameter -L"pathname" right? I don't have to write anything extra in the code do I?
As I said, I got the darn test program to build and when it runs it doesn't appear to do anything? Well, if I run it again (while it's still in my task manager) the error message saying 'couldn't open driver' pops up. This I would've expected, bear with me...
I wrote a simple program to take a sample from the ADC11 and print the results, but I'm getting the 'pico.sys is missing' error from the adc11_get_unit_info. Is this why the test program is not doing anything?
Pico.sys is in my system32/drivers folder and picoscope works fine, but I can't find regdrive.exe to try and tell the OS that the driver is available. I've done a search for regdrive.exe on both my harddrives and also the cd but it returns no results. What can I do?
I've tried doing a repair installation with the device unplugged and then restarting the computer with the device in before powering up but this hasn't changed anything
Thanks in particular to Sarah for your replies so far! Please help me some more !
I've attatched my test program in case it helps, it's dead simple.
Could someone please either post regdrive.exe in this thread, or private message me to arrange emailing it or something because I can't find it anywhere! It could be the solution to my above problem.
"You will no longer see the regdrive programm with our new installer package. This MSI installer writes to the registry without the regdrive."
So I've given up on regdrive.exe. The error message I get from my test program is this:
ADC11/22 DRIVER V4.2
pico.sys not found
pico.sys v2.0
A few questions:
I see 5 people have dowloaded my test program, did anybody have any results from it?
If pico.sys is not found, how does it know it's v2.0?
How come picoScope works, it must need the same driver?
What is the test program supposed to do?
I suspect that the adc-11 test program is not the one you want to use. The file you want is adc11con.c as this is the main command line program. I have successfully compiled this in Visual C but have not tried with Borland.