Jump to content

Dll acting strangely


Recommended Posts

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?

Link to comment
Share on other sites

$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
Link to comment
Share on other sites

  • Moderators

$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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...