Sign in to follow this  
Followers 0
mage123

Dll acting strangely

4 posts in this topic

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



#3 ·  Posted (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 by SmOke_N
Snipped url

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0