Jump to content
Sign in to follow this  
Oldschool

dll callling non system dlls

Recommended Posts

Oldschool

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

Share this post


Link to post
Share on other sites
flyingboz

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.

Share this post


Link to post
Share on other sites
Oldschool

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?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.