UserAutoIt Posted June 17, 2011 Share Posted June 17, 2011 Hello. (Sorry for bad English ) Tell me please what could be the problem: I call function from a DLL without parameters - everything works fine. If called with the parameters - function of dll runs fine, but right after - error: "autoit3.exe - an error is detected. And needs to close.." (AutoIt Version 3.3.6.1 , OS: WinXP SP3) Const $hWnd = WinGetHandle("[ACTIVE]") Const $x_1 = 100 Const $x_2 = 110 Const $y_1 = 100 Const $y_2 = 110 $dll = DllOpen ("Q:\test_dll\test.dll") DllCall ( $dll, "none", 4,"hwnd", $hWnd, "int", $x_1,"int", $x_2,"int", $y_1,"int", $y_2) DllClose($dll) Why does not finish correctly DllCall? Link to comment Share on other sites More sharing options...
JohnOne Posted June 17, 2011 Share Posted June 17, 2011 Do you have documentation for dll? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Zedna Posted June 17, 2011 Share Posted June 17, 2011 1) Try DllCall ( $dll, "none:cdecl", 4,"hwnd", $hWnd, "int", $x_1,"int", $x_2,"int", $y_1,"int", $y_2) 2) after DllCall() add this _WinAPI_GetLastErrorMessage() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
UserAutoIt Posted June 18, 2011 Author Share Posted June 18, 2011 Zedna thanks! 1) - works fine Link to comment Share on other sites More sharing options...
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