|
|
| Author |
Message |
epiksrl Active User

Joined: 23 Jan 2006
Posts: 5
|
Posted: Mon Jan 23, 2006 5:58 pm Post subject: PROBLEM IN OPEN LPT FROM VB6 adc-212 |
|
|
before beginning writing software I've tried picoscope and it works fine on lpt1 after I tried the sample on CD for VB6 but it fails immediatly when it tries to open lpt 1
what's wrong?
please help asap
Alessandro-Epik |
|
| Back to top |
|
 |
Michael Guru

Joined: 07 Jul 2005
Posts: 93
Location: St Neots, Cambridgeshire
|
Posted: Tue Jan 24, 2006 9:25 am Post subject: |
|
|
Hello,
Please check the location of your dll files. The header file from the example may point to a different locale, causing the program to halt.
Best regards,
Michael |
|
| Back to top |
|
 |
epiksrl Active User

Joined: 23 Jan 2006
Posts: 5
|
Posted: Mon Jan 30, 2006 10:38 am Post subject: |
|
|
in the example there is
opened = adc200_open_unit(port)
and it returns 0 so fail open LPT1
The function are declared in this way
Declare Function adc200_open_unit Lib "ADC20032.dll" (ByVal port As Integer) As Integer
and the adc20032.dll is in the same path of the sample is it correct for the adc 212? I see under c:\program files\pico\ also adc1032.dll adc1132.dll adc1632.dll adc10032.dll are you sure that adc20032.dll in enough? |
|
| Back to top |
|
 |
epiksrl Active User

Joined: 23 Jan 2006
Posts: 5
|
Posted: Tue Jan 31, 2006 10:58 am Post subject: |
|
|
| I've solved coping all the Vb project files in the picoscope directory, and now my question is, if I've to redistribute my software what kind of dll I have to include? What are the right dipendencies? |
|
| Back to top |
|
 |
Michael Guru

Joined: 07 Jul 2005
Posts: 93
Location: St Neots, Cambridgeshire
|
Posted: Tue Jan 31, 2006 11:27 am Post subject: |
|
|
Hello,
The ADC20032.dll file covers the ADC200 and 212 scopes. THe ADC1x32.dll files are product specific.
You will need to distribute the adc20032.dll file with your programm if you are using the ADC2xx family.
Best regards,
Michael |
|
| Back to top |
|
 |
epiksrl Active User

Joined: 23 Jan 2006
Posts: 5
|
Posted: Tue Jan 31, 2006 11:45 am Post subject: |
|
|
OK but WHY in a directory where is the dll and the vb project ONLY it doesn't works, and in the directory of the picoscope IT WORKS? maybe my software needs some other else ie particular key of the windows registry or some ini file or what?
thank you |
|
| Back to top |
|
 |
Michael Guru

Joined: 07 Jul 2005
Posts: 93
Location: St Neots, Cambridgeshire
|
Posted: Mon Feb 06, 2006 2:23 pm Post subject: |
|
|
Hello,
Sorry,
You will need to install the adc200.sys file.
Best regards,
Michael |
|
| Back to top |
|
 |
|