Advertisement

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

2_2002-2004 #122822
File Dependency Sniffer v3! [MUST SEE!]

(******Another Big Update, v3 now... I added a 'All Files' (*.*) scan to it so you can see Every File found in an EXE!!! It also sorta the listbox alphabetically! Check It Out!)(*****Updated!!! v2, Calling it v2 cause of the major changes i made to the project including a working filtering scheme that correctly fixes the found filenames correctly as far as i can tell... tell me what u think of this new version!)(****Updated!, Now has a Search Query box feature so you can search for more than one file extention at once! I also included 2 filtering loops to remove bogus findings, but since it is untested fully i left the original project in the zip for you to have regardless... Check it out.)(***Updated, removes dupes now cause some programs have a reoccuring file being found in the search, so i gave the option to remove dupes or not, check screenshot!)(**Updated, I just fixed the VB5 InstrRev part, sorry if it didn't work..)(*Updated, Just added a save feature to it for developers who want to include it in a readme or something, good luck) Description: I needed a file dependency sniffing program really quick for a friend who sent me a Borland exe and needed to know which dlls it needed so I ran to PSC to find my self searching for keywords and not get anything, then I tried one word and kept browsing through the many entries of PSC. Then I came accross one, called nFile_Search, it was so pathetic I could have cried, the only thing i liked was the interface so I kept it for this program, heh, but I cleared the whole form of code and wrote this up and made it so you can search for other types of files besides .dlls, to expand its usability (.ocx, .exe, @ for emails, anything) so enjoy and if anyone out there has tips or ideas to make it more effecient then please submit. Also please vote if it isnt too much trouble ;p IM me at: Mike3dd Email: [email protected] for anything. ;]

2_2002-2004 #122835
UUDecode Class

This code is based upon the ONLY other VB uuencode/uudecode source code available (it's here). I put this together as part of a larger project that I'm in the middle of (a USENET binary downloader) and I wanted a uudecode routine that would decode on-the-fly. This does. It also encodes and decodes files, like a normal encoder/decoder. I spent a lot of time optimizing it, and I think it'll now decode fast enough to handle most DSL/Cable accounts on the fly (480-590 kb/s). Error checking is sparse, hopefully there's no glaring bugs. Hope it's helpful, and let me know if there's any more optimizations that you can find! [Update] I fixed the problems described below, and also replaced the static filenumbers with dynamically generated ones. Doh! [Update] Another bug found and fixed. There were null characters at the end of each line of files encoded with UUEncodeFile. They're gone now...

2_2002-2004 #122853
Search for file(s) on a Drive with API

My coding actually does several things. The main thing is that it can search an entire Drive and all of its Directories for a file you specify and at the end of the search display the results of it. Or you can do the same thing but this time look for any file with an extention you specify. I made this search for the file using API but I left a function in there you can edit to search for the files without API but it's a little slower and not recommended. This Screen Shot can pretty much explain it all... E-mail: [email protected] AIM: Mike3dd

2_2002-2004 #122862
Change form backround with common dialog

Kind of like skinning your program

2_2002-2004 #122881
Add Byte's to a .exe file

It add Bytes to a file.

2_2002-2004 #122882
Include a file in a program

Include a file in your program.

2_2002-2004 #122912
Scanning / Capturing Pictures w/ Scanner or WebCam

Ever wanted to scan a picture and save it to the Hard Drive? Well Now You Can. With a Few Lines of Code you're ready to capture a picture from a webcam or scan something from a flatbed. This may only be compatible with certain brands of scanners and webcams but should work with most. The only thing not coded by me in this sample is the control which is included. I think it was built by kodak. Anyhows enjoy. Be sure to Extract the .OCX to your Windows\System directory or most likely this will not work.

2_2002-2004 #122913
Bytecompare files (fastest way)

This code compares 2 files (EXE, BMP or whatever) using the fastest possible way in VB, only asm is faster. its about 1MB/sec. If you have problems opening the project in VB5 just remove : Retained=0 ThreadPerObject=0 MaxNumberOfThreads=1 from the projekt1.vbp using notepad (or just create a new project and add the form and the module) greets, Tom

2_2002-2004 #122919
Reading Command Parameters

Have you ever wanted to click a file and open it? If your program is associated with a specified file type, or you select file(s) and drag them onto the exe icon of your app then this code is for you. It reads the parameters when the form is loaded using by getting the "Command". This code can get each file dragged or clicked on. If you just use the command statement you will get something like this "c:\george.bmp c:\ben.bmp f:\mydoc.doc". This code seperates each file and uses another sub to open it.

2_2002-2004 #122925
A Basic Set of File handling controls (updated)

FileReal, CloseAllFiles, CopyFile, DeleteFile, GetAttrib, GetFileDate, GetFileExtension, GetFileSize, MakeDIR, RemoveDIR, SetHidden, SetReadOnly, SetSystem, SetNormal, Overwrite

2_2002-2004 #122927
Store TextBox, ListBox, and other controls values in a file then restore them from a file.

This code will save values for TextBox, CheckBox, ListBox, ComboBox, OptionButton, and MultiLine TextBoxes with no problem. It demonstrates using the controls collection to go through all controls contained on a form and save their values. It also has an error handler that gives abort, Retry and ignore options on errors. It uses conditional compilation to help with debugging by printing values to the debug window. This behavior can be changed by changing #const debugmode to 0. The file will automatically be saved in the same directory as your application and will contain the forms name with an extenstion of .set.

2_2002-2004 #122931
PrinterSupport

The PrinterSupport.dll was created in order to simplify printing documents. Included features are; 1. Paragraphs 2. Rectangles 3. Circles 4. Pictures (picture object reference) 5. format text (i.e. bold, size, etc) 6. Justification (full, left, right and centre) The printing is done using millimeters so that replicating documents for programs is relatively straight forward. The non-printable area of the printer is also taken care of. Note: The printer orientation is not modified at all but can easily be added if need be. There is also no current method of selecting a printer which can also be added to the dll if required.

2_2002-2004 #122946
File Type Generator--(File Associations)

The purpose of this program is to create file associations with programs and file types on your computer. You can select from several options, but of course, the most important ones being what program to open the file with and what program to print the file with. Take a look through the code and feel free to modify it and use it in your install program or setup program to creat file types.

2_2002-2004 #122968
_*New (SAME SIZE OF BMP 24 BIT) picture format*_

This little example shows how to create a new picture format in a very simalar size of a 24 bit BMP picture. (And in only 118 lines of code.) But in that 118 lines of code theirs extracts like, fileexist, valid picture format etc... Please vote and take a look, also leave a comment.

2_2002-2004 #122969
Rich Text Box / Common Dialog Box Tutorial

Author: BEN GRAY Email: [email protected] This tutorial demonstrates how to use Rich Text Box control, and mostly, how to use the Common Dialog control. It covers all concepts of the common dialog control, including flags. Now you can turn off that annoying "Open as read only" check box. It is commented heaps on every line. Special Thanx to: Ian Ippolito, Webmaster Planet Source Code www.planet-source-code.com

2_2002-2004 #122976
File creation..Read file for input

This little program teaches you how to create a file, open in, then put the data from the file into controls. This is great for beginners

2_2002-2004 #122988
Image Previews in Common Dialog

If you are writing an Image Editor or your app opens picture files you need this. Just like the big boys you can now show a preview of images right there in the CommonDialog window. Very easy to use. Add a module and a small form to your project and call with a single line of code.

2_2002-2004 #122995
File Date Time Setter

This allows you to change the system date time stamp on your files. It was written just to make the files we send out to users look a little neater, all with the same date and time.

2_2002-2004 #123041
A File Date/Time Changer * Major Update *

DateChanga views and modifies the date you see when you right click a file. This can be very useful in many ways, also shows how to convert SYSTEMTIME to FILETIME etc. I have tested on vb6 in winXP and it works fine. Please help me with some feedback regarding anything you like/dislike about this program. and please dont forget to vote.

2_2002-2004 #123044
Transfer files to select computers over a network

As a computer programmer, you may be developing one or more projects to run on certain computers on a network environment. Once the initial installation takes place for each computer, you may have a need to change the code for a program, recompile, and create a new EXE file,and copy the EXE file to each computer needing this program update on your network. NOTE: To use this demo, you must have System Admin rights or try typing in a UNC path and access their computer remotely. (Example Shown Right) The file must be closed before you can copy it to networked computers. You could, of course, Use Start / Run / and type in the UNC path and dump the file to each computer (like illustrated above) - then copy the file over. There may even be other methods to do this, but the method I developed allows you to send the EXE file (or other file(s) if necessary), to each computer on the network (only those running your software) through its computer identification name. This program was written about 1 ½ years ago – found partial code that was missing – so I’m uploading this for you’ll. Did some simple modifications to it before uploading it to PSC. Forms are quite simple and it uses DAO (I know it’s old) but still works very well. See for yourself – then change to ADO if you wish. This YourApp.vbp and TransferApp.vbp does not require any outside OCX or DLL. You do have to reference the Microsoft Scripting Runtime. Please read the README.doc Word Document for proper preparation, setup, and execution of this demo. If you don't have MS WORD, you can download the WORD viewer from Microsoft's web site. If you like this program, please feel free to vote - please leave suggestions and/or comments. Thanks

Languages
Top Categories
Global Discovery