mage123 0 Posted June 28, 2011 I have a dll with an initialize function, finalize function (unloads dll from memory), and some other functions. The dll works fine in c++, but when I do initialize() in autoit with dllcall it returns 1 (an unknown error- 0 means success) and nothing works. I know my code is right because the finalize function returns 20 which is ERR_NOTINIT. Also, it works fine in autoit on computers other than my own. Anybody have a clue as to what is going on? Share this post Link to post Share on other sites
JohnOne 1,603 Posted June 28, 2011 It will be difficult for anyone to see a problem without first seeing an example of your non working code. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
mage123 0 Posted June 28, 2011 (edited) $maplecrypto=DllOpen("maplecrypto.dll") $a=DllCall($maplecrypto,"int","Initialize") MsgBox(0,0,@error) MsgBox(0,0,"Initialize() returned "&$a[0]&@CRLF) $a=DllCall($maplecrypto,"int","Finalize") MsgBox(0,0,"Finalize() returned "&$a[0]&@CRLF) DllClose("maplecrypto.dll") Dll's <snipped> if you want it. Edited June 28, 2011 by SmOke_N Snipped url Share this post Link to post Share on other sites
SmOke_N 211 Posted June 28, 2011 (edited) $maplecrypto=DllOpen("maplecrypto.dll") $a=DllCall($maplecrypto,"int","Initialize") MsgBox(0,0,@error) MsgBox(0,0,"Initialize() returned "&$a[0]&@CRLF) $a=DllCall($maplecrypto,"int","Finalize") MsgBox(0,0,"Finalize() returned "&$a[0]&@CRLF) DllClose("maplecrypto.dll") Dll's here if you want it. Reason thread is being closed: http://www.autoitscript.com/forum/forum-2/announcement-13-forum-rules/ Edited June 28, 2011 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Share this post Link to post Share on other sites