ngskicker Posted March 29, 2009 Share Posted March 29, 2009 (edited) can someone help me to convert this vb code to autoit CODEPrivate Declare Function GetHash Lib "hashGen.dll" (ByVal tEncode As String) As Long Edited March 29, 2009 by ngskicker Link to comment Share on other sites More sharing options...
LiveOnTheFly Posted March 29, 2009 Share Posted March 29, 2009 can someone help me to convert this cede to autoitCODEPrivate Declare Function GetHash Lib "hashGen.dll" (ByVal tEncode As String) As LongIt would be nice if you told us what language that is in? Link to comment Share on other sites More sharing options...
Authenticity Posted March 29, 2009 Share Posted March 29, 2009 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. Link to comment Share on other sites More sharing options...
ngskicker Posted March 29, 2009 Author Share Posted March 29, 2009 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 Link to comment Share on other sites More sharing options...
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