Oldschool Posted October 21, 2007 Posted October 21, 2007 (edited) Ok, so I made a DLL with VS2005 that has a function built in that returns an integer when called. $dll = DllOpen("Test1.dll") $result = DllCall("Test1.dll", "int", "testfunc") MsgBox(1, "Test1", $result) DllClose($dll) But this returns a 0 insted of an integer I assigned... and then gives me a fatal error. AVector: []: Out of bounds. Am I not doing something I'm supposed to? Edited October 21, 2007 by Oldschool
flyingboz Posted October 21, 2007 Posted October 21, 2007 Am I not doing something I'm supposed to?obviously in your message box, check the status of @error do determine what's kicking your butt.are you _sure_ your dll is doing what you say it is? Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
Oldschool Posted October 22, 2007 Author Posted October 22, 2007 obviously in your message box, check the status of @error do determine what's kicking your butt.are you _sure_ your dll is doing what you say it is?I'll see what I can do...So my syntax is correct...?I don't have to register this dll within autoit in any other way for it to work?
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