Jump to content
Sign in to follow this  

dll call worng parameters?

Recommended Posts



Ive got this function in a dll:

Public Function evDiff(ByVal chipsPtr As IntPtr, ByVal sb As Integer, ByVal bb As Integer, ByVal ante As Integer, ByVal handIndex As Integer, ByVal noSB As Boolean, ByVal isPush As Boolean, ByVal myPos As Integer, ByVal allN As Integer) As Double

I've wrote in my au3 code this line:

$x=dllcall("GameAnalysis.dll","int","evDiff","ptr",$myarray[3],"int",50,"int",100,"int",0,"int",52, "int",false,"int",1,"int",2,"int",0)

but the result seems not correct, any fix pls?

Share this post

Link to post
Share on other sites

You are using "int" as the return type. Change it to "double".




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.