A return value of 0 indicates that the unit can't be found and -1 indicates that it has failed to open.
I'm really not sure why you can't open the unit. You're using the correct .lib file (ps2000bc.lib). Data types should be the same. I wonder if it has something to do with name mangling. Are you building a C or C++ project?
It shouldn't be an issue as the header contains the following lines
- Code: Select all
#define PREF0 extern "C"
We don't have Borland here, but I'm not aware of anyone having problems with it.
All of our examples are included in the SDK.