 |
| Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

October 6th, 2010, 02:42 PM
|
|
Authorized User
|
|
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
7zip compression
VB.NET 2003 or 2005 application program.
i was trying to create an application program to compress some files using 7zip. when application program runs, need to browse and select the files need to be compressed and mention the name of the zip file and compress the file in that folder.
i google for some help. i'm getting examples only in C#.
Anyone know whether i can do this in VB.NET? if so, can you please help me and if possible can you please give an example?
Thanks in advance.
|
|

October 6th, 2010, 02:53 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
Hi there..
What problem do you have translating it from c# to vb.net?? usually, you can do it straightforward. Didn't any of the on-line translator helps?
__________________
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the proof.
================================================== =========
|
|

October 6th, 2010, 03:02 PM
|
|
Authorized User
|
|
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i checked and found some C# codes...
http://www.7-zip.org/sdk.html
when i open that, it contain some classes. i'm not getting any idea how to call that class and compress files using 7zip.
can you please help me and if possible can you please give an example?
Thanks in advance.
|
|

October 6th, 2010, 04:09 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
Well, you call them the exact same way you do it in vb.net.
You need an example of what exactly?
__________________
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the proof.
================================================== =========
|
|

October 6th, 2010, 04:20 PM
|
|
Authorized User
|
|
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i checked this link too..
http://www.codeproject.com/KB/DLL/cs...face_7zip.aspx
when i open it contain Program.cs, SevenZipFormat.cs and SevenZipInterface.cs classes.
i not getting any idea which function in which calss, i need to call for compressing files.
in this link...
http://www.7-zip.org/sdk.html
when i open it contain LzmaBase.cs, LzmaDecoder.cs, LzmaEncoder.cs
classes.
can you please help me.
Thanks in advance.
|
|

October 6th, 2010, 09:11 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
Sorry, I never use that classes so I don't know what function or class you should call... Maybe there is a guide that you can check?
__________________
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the proof.
================================================== =========
|
|

October 7th, 2010, 09:56 AM
|
|
Authorized User
|
|
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
when i google, i'm not getting any other examples.
is there anyother way i can create an application program to compress some files using 7zip. when application program runs, need to browse and select the files need to be compressed and mention the name of the zip file and compress the file in that folder.
if you know any idea how to do this, please help me.
Thanks in advance.
|
|

October 7th, 2010, 11:28 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
If you have this SDK already working why use another?
Maybe you will have to check the files for info, and also play with them a little? Did you see if the class has documentation inside them?
__________________
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the proof.
================================================== =========
|
|

October 7th, 2010, 11:33 AM
|
|
Authorized User
|
|
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
no documentation....
i think i can't do it in 7zip for compression... i was thinking of doing it in zip file... is that possible??
|
|

October 12th, 2010, 10:39 AM
|
|
Authorized User
|
|
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Finally it start working. SharpZip have dll which helps to compress multiple files.
Thank you so much for the help...
|
|
 |