mage123 Posted June 28, 2011 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?
JohnOne Posted June 28, 2011 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.
mage123 Posted June 28, 2011 Author 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
Moderators SmOke_N Posted June 28, 2011 Moderators 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.
Recommended Posts