Dima Posted May 26, 2009 Posted May 26, 2009 probably a newbie question: how do i create a safearray of strings for com authomation? i am trying to authomate the abbyy fine reader using the following interface: ------------- dispinterface IFineReaderApplication { properties: methods: [id(0x00000001)] void AddImage( [in] BSTR imageFile, [in] VARIANT_BOOL ignoreResolutionWarning); [id(0x00000002)] void AddImages([in] VARIANT* safeArrayOfImageNames); [id(0x00000003)] void CreateNewBatchWithOptions([in] BSTR imageFile); [id(0x00000004)] void OpenRead([in] VARIANT* safeArrayOfImageNames); [id(0x00000005)] void SetRecognitionLanguages([in] VARIANT* safeArrayOfLanguages); [id(0x00000006)] void ForegroundMainFrame(); [id(0x00000007)] void ScanWithScanner([in] BSTR scannerName); }; ------------- with the following code: ------------- #include <Array.au3> $friApp= ObjCreate("FineReader.Integration") if IsObj($friApp ) Then ConsoleWrite("OK frinteg") Else ConsoleWrite("nOK frinteg") EndIf Dim $varArray[1] $varArray = _ArrayCreate("R:\\z_temp\\u1.pdf") $friApp.ConvertToPdf($varArray) ------------- however it fails with internal error may i guess it is because of incompatible array types? regards Dima
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now