Oldschool 0 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 Share this post Link to post Share on other sites
flyingboz 2 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. Share this post Link to post Share on other sites
Oldschool 0 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? Share this post Link to post Share on other sites
jpam 2 Posted October 22, 2007 try; MsgBox(1, "Test1", $result[0]) Share this post Link to post Share on other sites