Sign in to follow this  
Followers 0

passing references to dlls

1 post in this topic


I have a dll that I need to get data out of; the only problem is that it returns data in the parameters I send, not just the "return" value.

I've tried using normal variables with no luck, and now I've tried pointers to dll structures; still nothing.

I'm kind of stuck. Does anyone have any ideas?

Here's an example of my latest attempt (obviously, the dll and function names are modified for posting):

$error_return = DLLStructCreate("short")


MsgBox(0,"","Value: " & DllStructGetData($error_return,1))

I'm not sure how else to pass a reference to a dll in order to get data out via parameters.

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  
Followers 0