frankzappa Posted April 12, 2008 Posted April 12, 2008 Hey all, i'm trying to use a DLL i wrote with my autoit script, but i'm stuck with a problem. The DLL is ready, everything seems fine with it, so i wrote thos lines in my autoit script: CODE$DLL = DllOpen("DaBrainDll.dll") $i = DllCall($DLL, "int", "StartUp") msgbox(0, "", $i & " " & @error) So, the call to DLLOpen is working ($DLL = 1), but the call to the function do not have any answers, i mean, the msgbox is empty... Just to show how things are on the other side, my .def file for the DLL is EXPORTS StartUp ShutDown ReadEvents SetXML Action And the .cpp is like this: int _stdcall StartUp() {etc...} Well, do someone see something wrong here? thanks.
jpam Posted April 12, 2008 Posted April 12, 2008 $DLL = DllOpen("DaBrainDll.dll") $i = DllCall($DLL, "int", "StartUp") msgbox(0, "", $i[0] & " " & @error) you call return an array back
frankzappa Posted April 12, 2008 Author Posted April 12, 2008 $DLL = DllOpen("DaBrainDll.dll") $i = DllCall($DLL, "int", "StartUp") msgbox(0, "", $i[0] & " " & @error) you call return an array back hohoho, exact answer. Thanks mate, now its working!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now