In windows XP I'm running a program wich reads a barcode from a PDF file.
For this I'm using a DLL (from Bytescout) which I have registered.
The program looks like this:
$barReader = ObjCreate("Bytescout.BarCodeReader.Reader")
$barReader.TypeToFind = 32
$barcode = $barReader.GetFoundBarcodeValue(0)
The VBS code that does the same is:
Set barReader = CreateObject("Bytescout.BarCodeReader.Reader")
barReader.TypeToFind = 32
Msgbox "barcode= " & barcode
But when I'm running the autoit executable on a Windows server 2008 it gives an error on line 3, saying that the variable must be of type "object".
The VBS code doesn't give this error and works fine.
Anyone having an idea what the problem could be?