Sign in to follow this  
Followers 0
UserAutoIt

DllCall() error

4 posts in this topic

Hello. (Sorry for bad English :huh2:)

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?

Share this post


Link to post
Share on other sites



Zedna thanks! 1) - works fine

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0