Sign in to follow this  
Followers 0
ngskicker

help dll

4 posts in this topic

#1 ·  Posted (edited)

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



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

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

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  
Followers 0