Jump to content

Recommended Posts

Posted (edited)

Ok, so I made a DLL with VS2005 that has a function built in that returns an integer when called.

$dll = DllOpen("Test1.dll")

$result = DllCall("Test1.dll", "int", "testfunc")

MsgBox(1, "Test1", $result)

DllClose($dll)

But this returns a 0 insted of an integer I assigned... and then gives me a fatal error.

AVector: []: Out of bounds.

Am I not doing something I'm supposed to?

Edited by Oldschool
Posted

Am I not doing something I'm supposed to?

obviously <_<

in your message box, check the status of @error do determine what's kicking your butt.

are you _sure_ your dll is doing what you say it is?

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Posted

obviously <_<

in your message box, check the status of @error do determine what's kicking your butt.

are you _sure_ your dll is doing what you say it is?

I'll see what I can do...

So my syntax is correct...?

I don't have to register this dll within autoit in any other way for it to work?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...