Hi, 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: global $barcode $barReader = ObjCreate("Bytescout.BarCodeReader.Reader") $barReader.TypeToFind = 32 $barReader.ReadFromFile("\apps\example.pdf") $barcode = $barReader.GetFoundBarcodeValue(0) msgbox(0,"barcode= ",$barcode) The VBS code that does the same is: Set barReader = CreateObject("Bytescout.BarCodeReader.Reader") barReader.TypeToFind = 32 barReader.ReadFromFile "\apps\example.pdf" barcode=barReader.GetFoundBarcodeValue(0) 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?