Shabang27 Posted March 21 Share Posted March 21 On one computer, the script works as intended. The second computer gives an error: "Failed loading DLLs.Failed loading DLLs." Func _cvLoadImage($filename, $iscolor = 1) If $filename = "" Then Return SetError(1) $_aResult = DllCall($_opencv_highgui, "int:cdecl", "cvLoadImage", "str", $filename, "int", $iscolor) MsgBox($MB_SYSTEMMODAL, "2", $_aResult) ; comment: our problem is $_aResult of this line^ it shows as 0 on the second computer (so its not an array) ; comment: while on the working computer it shows nothing which I assume is because an array won't show up on ; comment: MsgBox If @error Then ConsoleWrite("File not loading") If Not IsArray($_aResult) Then MsgBox(16, "Error", "Failed loading DLLs.Failed loading DLLs.") _OpenCV_Shutdown() Exit EndIf Return $_aResult EndFunc ;==>_cvLoadImage My problem is $_aResult. It shows as 0 on the second computer (so it's not an array causing the error to flag) while on the first computer it shows nothing (which I assume is because an array won't show up on MsgBox) I tried compiling x64, x86, and copy pasting the folder with the script to the second computer and running from there, but there was no difference. I changed the resolution of both computers to be the same, no difference. OpenCV-Match_UDF.au3 Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now