RandomGuest Posted May 19, 2007 Posted May 19, 2007 Hi I want to decompress a ZLib-stream, but I dont know how to do that in Autoit. In VB, it'd look like this: Declare Function uncompress Lib "zlib.dll" (ByRef dest As Any, ByRef destLen As Any, ByRef src As Any, ByVal srcLen As Long) As Long Here, "dest" is the Variable to save the output in, destLen is the expected length of the decompressed dara, src is the compressed data and srcLen is the length of the compressed data. I dont know how to use that with Autoit's DllCall. Thanks for your advice
GaryFrost Posted May 19, 2007 Posted May 19, 2007 just a guess: $ret = DllCall("zlib.dll","int","uncompress", "str", $dest, "int", $destlen, "str", $source, "int", $sourcelen) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
RandomGuest Posted May 20, 2007 Author Posted May 20, 2007 just a guess: $ret = DllCall("zlib.dll","int","uncompress", "str", $dest, "int", $destlen, "str", $source, "int", $sourcelen) No, that won't work. In the above mentioned example, the output is stored in the variable "Dest". Zlib.dll can't set Au3-Variables.
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