RandomGuest Posted May 19, 2007 Share 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted May 19, 2007 Share 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. Link to comment Share on other sites More sharing options...
RandomGuest Posted May 20, 2007 Author Share 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. Link to comment Share on other sites More sharing options...
drlava Posted July 17, 2007 Share Posted July 17, 2007 Just solved, hee here:#374145 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