Jump to content
Sign in to follow this  
ngskicker

help dll

Recommended Posts

ngskicker

can someone help me to convert this vb code to autoit

CODE
Private Declare Function GetHash Lib "hashGen.dll" (ByVal tEncode As String) As Long
Edited by ngskicker

Share this post


Link to post
Share on other sites
LiveOnTheFly

can someone help me to convert this cede to autoit

CODE
Private Declare Function GetHash Lib "hashGen.dll" (ByVal tEncode As String) As Long
It would be nice if you told us what language that is in?

Share this post


Link to post
Share on other sites
Authenticity

I think you can do it like this, but it's not the same of-course:

Func GetHash($sEncode)
     Local $aReturn = DllCall('hashGen.dll', 'long', 'GetHash', 'str', $sEncode)
     If Not @error Then Return $aReturn[0]
     Return SetError(-1, 0, -1
EndFunc

There is no mechanism for private or public accessibility in AutoIt so this is the way it may look like.

Share this post


Link to post
Share on other sites
ngskicker

I think you can do it like this, but it's not the same of-course:

Func GetHash($sEncode)
     Local $aReturn = DllCall('hashGen.dll', 'long', 'GetHash', 'str', $sEncode)
     If Not @error Then Return $aReturn[0]
     Return SetError(-1, 0, -1
EndFunc

There is no mechanism for private or public accessibility in AutoIt so this is the way it may look like.

thanks, ill try it

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  

×