jwilliams Posted September 10, 2006 Posted September 10, 2006 Hello, 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") DllCall("test.dll","function","none","int",$input,"ptr",DllStructGetPtr($error_return)) 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.
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