Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

6_2008-2009 #207888
Create a shortcut with the Windows Scripting Host (no VB6STKIT)

I wanted code that used components that were mostly likely to be found on a user's machine. VB5STKIT, VB4STKIT, and VB6STKIT all could be used for creating shortcuts, but there is a good chance they weren't already on the user's machine, meaning I'd have to include it in my install package. The Windows Scripting Host is a default installation on Windows 98 and higher, and is likely on a Windows 95 machine. Plus you can include an object test to easily verify the user has the Scripting Host installed.

6_2008-2009 #207909
Trial/Registration

Lets you create time limit on your programs

6_2008-2009 #207928
transferring data

This VB code shows how you can use ADO and Microsoft Scripting Runtime Library to transfer data from a database table to a text file.

6_2008-2009 #207963
Veritas Catalog Parser classes

Presented here are two VB classes for parsing Veritas Catalog files. Veritas catalogs are essentially the file system of a DLT backup tape it it may be useful to extract information from the catalog. Moreover, this was my first real successful attempt at reverse-engineering a file format. The file format specifications are included in the zip.

6_2008-2009 #207994
progress bar

a simple progress bar program for beginners if you find this code useful please vote

6_2008-2009 #208005
TapeChanger

This program uses the ASPI layer to manage the basic functions of a tape changer or autoloader. It can inventory the magazine, load and unload a specified tape and clean the tape drive head. It also has an automatic mode. WARNINNG. LARGE file (1.08Mb). Zip also contains SCSI documentation from ANSI and HP, as well as my own document. This program shows how to send RAW SCSI commands to a changer or other device, and get it to do something.

6_2008-2009 #208009
AA File description tool AA

Demonstrate the use of several contols such as RitchTextBox, ImageList , ToolBar, PictureBox,PRINTER, PRINTER PREVIEW, file atributes, file info,file size, file date, Icon Extractor, file exists, file extentio, file type, CPU monior,....some EASY API, fully comented for the hadrest parts I have grabbed some other author's code but I can't find their names back so i you recognize yourself, mail me and 'ill be enjoyed to refer

6_2008-2009 #208010
Get and Set attributes of a file

this is an easy code to get and set any file's attibutes (system, hidden, read-only,...) throught the vb function getatr and setattr

6_2008-2009 #208021
Saving Files

FOR BEGGINERS - This article explains clearly about how to save files in VB 6.0, it is SUPER EASY to fallow and explains everything very well.

6_2008-2009 #208035
Super fast COM DLL to search for files

Super fast ATL COM component for searching for files with multiple search filters. Also shows how to fire events in a COM DLL from another thread without getting a GPF and how to search for files recursively. Includes a VB project showing how to use the component.

6_2008-2009 #208158
An e-Book Reader, like Adobe Arcobat Reader

A 30 minutes e-book reading program to replace Adobe Acrobat Reader. This is a simple one. Thanks to J. Kelly Jr. for his GREAT File Binder submission.

6_2008-2009 #208267
Make quick executable from visual basic projects

This code will make an executable file from your visual basic project (vbp file) without having to go to Visual Basic and select Make exe. It's a part of a bigger program i am working on, program that i will post here on psc as long as i will finish. The reason why i'm submitting this code it's to demonstrate the capabilities of shellexecute and the /make switch of visual basic.

6_2008-2009 #208270
DeleteFileEx Function

This function can do following things ... [1] Show default system confirmation Prompt to move File to Recycle Bin [2] Move directly the selected File to Recycle Bin without any Prompt [3] Show default system confirmation Prompt to remove File forever. [4] Delete File forever without any prompt. (Same lile Kill function)

6_2008-2009 #208273
UPX sGUI

This is a GUI for UPX, it is very simple but efficient. I made it for my needs. If you like it vote.

6_2008-2009 #208309
SWF Forge

SWF Forage, a parser/extractor and a compiler of swf file. I found similar codes on psc but I wish to do it in a more clear and faster way. Extracting compiled flash(.exe) back to swf file. It is easy to do compile a swf file to a standalone exe without a separate palyer, but it depends on what version Flash you made the swf, because new features with new Flash. If new features used in swf, older player maybe play it correctly. So a workaround solution is to use the latest player:) And I included a small play game as resource and automatically extracted it to "Marshi Maro.exe" since psc will automatically remove any file with PE headers, no matter what you name the file. And I make these two functions into a class for handy usage. I used Copymemory for a better performance. Please feel free to leave any comments, bugs or suggestions are welcome! Next version will feature in automatically list IE cached swf files for users to select. Maybe I will develop a much more robust version in really parsing the frames of a swf file to gifs. Some basic function classes are found on psc, but the core swf storage class is written by me. I strictly follow the coding standard so that I hope you can learn abou it without too much difficult. Sorry for lack of detail code comments, but I think that the method is really simple.

6_2008-2009 #208310
Smart Storage with 2 compressions(zip/huffman) #BIG update 6

Smart Storage is something like a file packager, you can add any file(s) of any format to the storage file(AddUpdateItem function) and remove them(DeleteItem function), of course. Now it comes into two separate version: with/without compression. You can choose zlib/huffman or no compression for each file. It uses index(file) technique for a better performance, thus it has VaccumStorage() function. And, the most inportant part is that it uses serialized section(chunk) technique to handle the CRC & compression of large file. And this project is originally aimed to be the storage part of Carles P.V's Thumbnailer 1.0 (image thumbnailer-viewer with GDI+)(http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=59677&lngWId=1), thus it includes the PictureFromByteStream() function to directly return a picture object from a byte array! Beside that, there are: GetItemText() function for direct return of plain text content; GetItemPicture() function for direct return of picture object according to the index; SaveItemToFile() function to save the content to disk file according to the index. Some of the codes are not written by me, such as cHuffman, cCRC. They are from psc, now they are back for you guys:) The zlib dll is generated at runtime of sample test since psc will remove all PE file. It is easy for you to remove the zlib dependancy, that's why I only enclosed it in the sample project. And I make all these functions into a class for handy usage. I also use Copymemory for a better performance. Please feel free to leave any comments, bugs or suggestions are welcome! Usage: 1.Simply open the sample storage, then click listed files, content displayed, doubleclick to save. 2.Select DB File->Create->Open->Select Item File, add it... Sorry for lack of code comments, but I think that the method is really simple. #update 5: added ReadItemContentChunk(), chunk by chunk to read a file, rather than read the whole file at once. added Version support. Improved OpenStorage result. Now with full DIBs support, from an image to store in storage, then from storage back to be an image! #update 6: fixed bug in ReadItemContentChunk() due to changed with serialized section chunk.

6_2008-2009 #208311
Smart Storage with 2 compressions(zip/huffman) #update 4

Smart Storage with 2 compressions(zip/huffman) Smart Storage is something like a file packager, you can add any file(s) of any format to the storage file(AddUpdateItem function) and remove them(DeleteItem function), of course. It uses index(file) technique for a better performance, thus it has VaccumStorage() function. And this project is originally aimed to be the storage part of Carles P.V's Thumbnailer 1.0 (image thumbnailer-viewer with GDI+)(http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=59677&lngWId=1), thus it includes the PictureFromByteStream() function to directly return a picture object from a byte array! Beside that, there are: GetItemText() function for direct return of plain text content; GetItemPicture() function for direct return of picture object according to the index; SaveItemToFile() function to save the content to disk file according to the index. Some of the codes are not written by me, such as cHuffman, cCRC. They are from psc, now they are back for you guys:) The zlib dll is generated at runtime of sample test since psc will remove all PE file. It is easy for you to remove the zlib dependancy, that's why I only enclosed it in the sample project. And I make all these functions into a class for handy usage. I also use Copymemory for a better performance. Please feel free to leave any comments, bugs or suggestions are welcome! Usage: 1.Simply open the sample storage, then click listed files, content displayed, doubleclick to save. 2.Select DB File->Create->Open->Select Item File, add it... Sorry for lack of code comments, but I think that the method is really simple. #update 1: now with compression and better sample, fixed some bugs and improve error handling #update 2: added huffman compression, CRC, GetItemText()/GetItemPicture() functions, fixed bugs in VaccumStorage. #update 3: added support for byte array(such as DIBs)/text etc. And ItemData for extract info. #update 4: added FilterItems() function for quick searcing. please visit a new version: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=59797&lngWId=1 with updates: #update 5: added ReadItemContentChunk(), chunk by chunk to read a file, rather than read the whole file at once. added Version support. Improved OpenStorage result. Now with full DIBs support, from an image to store in storage, then from storage back to be an image! #update 6: fixed bug in ReadItemContentChunk() due to changed with serialized section chunk.

6_2008-2009 #208314
How to dynamically create multiple controls?

Automatically add controls to the form at runtime, (by code, programmatically) and react to their events

6_2008-2009 #208381
VB6 Explorer

Allows you to open a VB6 Project, View all forms in it, View all Controls on any given form, and preview the form at runtime. A good example on file and String Handling, and Dynamic Control creation.

6_2008-2009 #208387
Information Bar Control

This is my first try at creating windows controls. It is an Information bar (Similar to the one used on IE in the new Windows XP SP2). This is a new way, that Microsoft seems to be trying, of showing messages to the user that is not as intrusive as the me message box. Code improvements are welcome. Please leave any options, comments, suggestions rant, etc. ------------------------------------------------ Update: I added support for animation and automatic close out thru the use of properties and custom Showing and Hiding methods.

Languages
Top Categories
Global Discovery