Question

I'm trying to create a Windows Phone 7 application, using either Silverlight or XNA, but I can't figure out how to do such thing, that would be part of the idea of the app. If it is not possible, is there any kind of format that does something similar to that?

Thanks in advance!

Was it helpful?

Solution

You can read a zip file if you have prior knowledge of the folders and files it contains. In fact MSDN contains an example of doing that when discussing the Application.GetResourceStream(StreamResourceInfo, Uri) method.

Alternatively you can use slsharpzlib if you need to explore and extract (and indeed create) zip files.

OTHER TIPS

SharpZipLib is implemented purely in C# and has been ported to the Compact Framework, so you could probably use it. Commercial libraries you have to be careful with becasue they may use P/Invokes to the zlib stuff for speed, which is going to fail under WinPhone.

EDIT

I see SharpZipLib has already been ported. See AnthonyWJones's answer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top