Strange, it should work. I don't use SDL so I can't test everything, but I know for sure it isn't Abbrevia!
Is the archive encrypted, or is the file in a subdirectory?
Strange, it should work. I don't use SDL so I can't test everything, but I know for sure it isn't Abbrevia!
Is the archive encrypted, or is the file in a subdirectory?
Yes i checked size of the stream and its exactly same as the file, so all right there.Originally Posted by Robert Kosek
The SDL funcion that don't work
In the other unit(the one that does not support protected zip) exports to Tstringstream and work all right.
From brazil (:
Pascal pownz!
It's probably that after extracting the stream from the archive, you need to reset the position back to 0 before passing it to the SDL functions, otherwise it'll just read form the current position.
<A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
<br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
<br /></A>
Don't understand nothing, but how can i do that ?Originally Posted by technomage
From brazil (:
Pascal pownz!
[pascal] RESZIP.Position := 0; // Before "LoadFromStream"[/pascal]
YEAHHHH!!Originally Posted by Robert Kosek
worked ;]
Thx for all
From brazil (:
Pascal pownz!
Hi arthurprs,Originally Posted by arthurprs
the problem here is that you are directly creating a TStream when infact you should be using one of it's descendents, like TMemoryStream for example instead.
Just try changing the TStream references to TMemoryStream and see if that helps.
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
i have followed Jsoftware tip and it worked some time ago,Originally Posted by paul_nicholls
then i needed to set .position to 0 after the extraction and it works perfectly.
From brazil (:
Pascal pownz!
D'OH! sorry, I didn't read the replies properly ops:
at least it is working now
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
maybe this:Originally Posted by arthurprs
RESZIP := TStream.Create;
RESZIP.Seek(0, soFromBeginning);
seems that is the same of RESZIP.Position := 0;
Knowledge is power.
Bookmarks