Hi i recently bought a usb project board from velleman electronics which came with all the drivers and a dll file containing all the functions to work the project board and a pdf explaining what thay do with examples in delphi, c+ and vb. I managed to load the dll into db and got it to work ok but some of the functions in the dll return a value so i looked in the db manual and found none of the 5 commands db has native return a value from a dll function.. for example it says in the pdf:
var h: longint;
BEGIN
h:=OpenDevice(0); // Opens the link to card number 0
END;
so by rights that should return the value of the card number to h
so what im trying to do is do the same in db but cant seem to figure out how.. i have tryed using things like :
a = call dll 1,"OpenDevice",0
print a
but db errors on that so since (as far as i know) theres no db command to return a value how would i go about doing it ?
any help would be great ..
thanx in advance..
dancedreemer