top of page

Groupe de HypnoCorps

Public·4 membres
Aslan Gavrilov
Aslan Gavrilov

Source Code Zip Folder For Vb6

The source code in Total Visual Sourcebook includes modules and classes for Microsoft Access, Visual Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily add this professionally written, tested, and documented royalty-free code into your applications to simplify your application development efforts.

source code zip folder for vb6

Total Visual SourceBook is written for the needs of a developer using a source code library covering the many challenges you face. Countless developers over the years have told us they learned some or much of their development skills and tricks from our code. You can too!

________________________________________________________________If you want to get the best response to a question, please check out FAQ222-2244 first'People who live in windowed environments shouldn't cast pointers.' RE: how can i zip a file programatically using VB6? Som76 (Programmer)14 Jul 03 06:20HelloI have an ocx and full source code for zip utility.If u need please send me your mail id, i will mail u the full source code.RegardsSom RE: how can i zip a file programatically using VB6? SSDeshpande (Programmer)14 Jul 03 07:51FIRST DOWNLOAD THE WINZIp COMMAND LINE SUPPORT FROM - and try this. . i haven't. but i feel it will do good. . .The WinZip Command Line Support Add-On lets you use WinZip's power from batch files, macros, and other situations when you have a specific task and would prefer to accomplish it quickly or automatically, without using the usual WinZip graphical user interface. Two executable files implement the WinZip Command Line Support Add-On: WZZIP.EXE (for zipping) and WZUNZIP.EXE (for unzipping). This help file describes how to use WZZIP and WZUNZIP. It includes sections on Using WZUNZIP and Using WZZIP plus comprehensive reference sections listing all commands and options in alphabetical order. The two reference sections are directly accessible for browsing as the WZUNZIP reference and WZZIP reference.See also the sections on Copyright, License, Warranty and Technical Support.Using the WinZip Command Line Support Add-OnThe WinZip Command Line Support Add-On is used by executing a command that starts WZZIP or WZUNZIP. There are three "places" where you can use the Add-On: In a command window, sometimes known as a DOS window or DOS box. This is a separate window that is normally started by selecting "MS-DOS Prompt" or "Command Prompt" from the Start menu; it normally displays the C> prompt. From the Run dialog, accessed from the Start menu. In batch files or other scripts (such as application program macros).The exact format of the command depends on which of these you use.Using a command windowYou can use the Add-On in a command window in any of these ways: You can type the full name of the WinZip folder followed by the name of the command, which is either "WZZIP" (for zipping) or "WZUNZIP" (for unzipping), followed by the parameters necessary for the operation. For example, if you installed WinZip into the C:\Program Files\WinZip folder and you want to list the contents of, you might type: "c:\program files\winzip\wzzip" -v that you must use quotes around the command name if the name of the folder includes spaces, as shown above. Otherwise, the quotes are not necessary.) You can copy WZZIP.EXE and WZUNZIP.EXE to a folder specified in your PATH environment variable. Then you can run the commands by simply typing "WZZIP" or "WZUNZIP" and the desired parameters, without the name of the WinZip folder: wzzip -v You can add the WinZip folder to your PATH environment variable, for example: set path=c:\windows;c:\program files\winzip;...If you have done this, you can run the commands at the system prompt by simply typing "WZZIP" or "WZUNZIP" followed by the desired parameters, without the name of the WinZip folder: wzzip -v (For information on the PATH environment variable, please refer to your Windows documentation. If you use this method regularly, you will probably want to edit AUTOEXEC.BAT so that the WinZip folder is permanently added to the PATH environment variable.)Using the Run dialogYou can use WZZIP.EXE and WZUNZIP.EXE from the Run dialog by simply typing the command name and any desired parameters. It is not necessary to include the WinZip folder, but you may need to specify the folder for the files you wish to work with. For example:wzzip -yp -v c:\temp\filename.zipWe recommend using the -yp option to keep the MS-DOS command prompt window from closing automatically; otherwise, you will not have much time to look at the results of your command.Using batch filesYou can use WZZIP.EXE and WZUNZIP.EXE in MS-DOS batch files using the same rules as shown above for command windows.The procedure will be similar for script processors other than MS-DOS batch files (application program macros, for example). However, check your documentation for information on how paths should be specified.Using return codes (errorlevels)WZZIP and WZUNZIP will in most cases return a nonzero errorlevel in the event of a serious error; otherwise, an errorlevel of 0 is returned. You can use these return codes in batch files and other automated processing. For example:wzzip *.doc If Not ErrorLevel 1 Goto Exit Echo ***SERIOUS ERROR DETECTED*** :ExitCopyright 2000 WinZip Computing, Inc. All rights reserved. RE: how can i zip a file programatically using VB6? Oliver76 (Programmer)(OP)16 Jul 03 03:00thanx a lot 2 U guys, shell command really helped me... :) RE: how can i zip a file programatically using VB6? RobHVB6Sql (Programmer)23 Sep 05 01:07My 2 cents worth, hope this helps I had the same issue and found WinZip quite good.Especially if you need to compress the file with password protection! Combining this with OSSMTP.dll I now compress the file and email it off for the user which works nicely showing the user messages as each step is completed.I also added some code to check if WinZip was present /installed and the file to compress is present.Snippet:CODE'Create password protected zip file via WinzipCall Shell("C:\Program Files\WinZip\winzip32 -a -ex -s" & strCompressPassword & " " & _strWorkingDirectory & "\" & strCompressedFileName & " " & strWorkingDirectory & "\" & strSendFileName) sStepName = "Source file " + strSendFileName + " successfully compressed and password protected"Call PutMsg(vbCrLf + sStepName) Rob Hasard(VB6 /SQL 7.0 /CR8.5) RE: how can i zip a file programatically using VB6? BobRodes (Instructor)23 Sep 05 16:30When I ran into this, WinZip wanted a whole lot of money as I recall to redistribute for sale. I found XZip.dll does everything I need, and it's freeware. I've used it in a distributed for sale application with no problems as yet. if you're interested. RE: how can i zip a file programatically using VB6? MiggyD (Programmer)24 Sep 05 01:25Silly question but why don't you use LZ32.DLL and/or LZEXPAND.DLL? I'm currently on a WinME machine and located these two in the \\Windows\System\ directory. As far as I know one (or both) come with the installation of Windows on a system.Here's a snippet from the VB4's WIN32API.TXT file:(YES, I said VB4!)******************************************************************************************************' public interface to LZEXP?.LIB' LZEXPAND error return codesPublic Const LZERROR_BADINHANDLE = (-1) ' invalid input handlePublic Const LZERROR_BADOUTHANDLE = (-2) ' invalid output handlePublic Const LZERROR_READ = (-3) ' corrupt compressed file formatPublic Const LZERROR_WRITE = (-4) ' out of space for output filePublic Const LZERROR_PUBLICLOC = (-5) ' insufficient memory for LZFile structPublic Const LZERROR_GLOBLOCK = (-6) ' bad Global handlePublic Const LZERROR_BADVALUE = (-7) ' input parameter out of rangePublic Const LZERROR_UNKNOWNALG = (-8) ' compression algorithm not recognizedDeclare Function LZCopy Lib "lz32.dll" Alias "LZCopy" (ByVal hfSource As Long, ByVal hfDest As Long) As LongDeclare Function LZInit Lib "lz32.dll" Alias "LZInit" (ByVal hfSrc As Long) As LongDeclare Function GetExpandedName Lib "lz32.dll" Alias "GetExpandedNameA" (ByVal lpszSource As String, ByVal lpszBuffer As String) As LongDeclare Function LZOpenFile Lib "lz32.dll" Alias "LZOpenFileA" (ByVal lpszFile As String, lpOf As OFSTRUCT, ByVal style As Long) As LongDeclare Function LZSeek Lib "lz32.dll" Alias "LZSeek" (ByVal hfFile As Long, ByVal lOffset As Long, ByVal nOrigin As Long) As LongDeclare Function LZRead Lib "lz32.dll" Alias "LZRead" (ByVal hfFile As Long, ByVal lpvBuf As String, ByVal cbread As Long) As LongDeclare Sub LZClose Lib "lz32.dll" Alias "LZClose" (ByVal hfFile As Long)******************************************************************************************************And some people still ask me: "Why do you have THAT!! old thing?" Then I think to myself, "Cause one day you'll need it! and you'll come running"HTH --MiggyD --> It's a bird! It's a plane! No, it's an OS update patch! Ahh!!

When you convert code from VB6 to .NET, some elements from the source application don't have a direct equivalent in the target platform. To bridge this gap Mobilize created some classes that have a native .NET implementation of the new way to achieve the same functionality you had in VB6.

In VB6 you have the Recordset class, used to read/write/modify data in a database. The closest equivalent in .NET is the Dataset class. These classes have some important differences, like the fact that a Recordset has the concept of a position and the Dataset doesn't.The helper classes have a RecordsetHelper class, which extends the functionality of the Dataset class in .NET and add properties and methods to replicate the behavior of the Recordset.This approach allows the migrated code to remain clean of new variables and code structures that might make the code harder to read and maintain.

À propos

Bienvenue dans le groupe ! Vous pouvez communiquer avec d'au...