Jump to content
Sign in to follow this  

DllCall() error

Recommended Posts


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 , 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)


Why does not finish correctly DllCall?

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.