AutoIt Forums: dll call worng parameters? - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

dll call worng parameters? calling a d

#1 User is offline   lavezzi 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 14
  • Joined: 05-September 08

Posted 03 November 2009 - 11:42 PM

Hi,

Ive got this function in a dll:
[ code='text' ]    ( Popup )
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:

[ code='text' ]    ( Popup )
$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?

#2 User is online   trancexx 

  • somewhere beyond the moon
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 2,621
  • Joined: 18-March 08
  • Gender:Not Telling
  • Location:Split, HR

Posted 04 November 2009 - 07:10 AM

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

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users