Results for "Category: Files/ File Controls/ Input/ Output"
Encode and Decode base64 at 6 megabytes per second !!!(on a Intel Pentium 233) Documentation is in the zip (full source code included). Based on Sebastien's functions posted few monts ago on this site.
Read a directory and fill a treeview and a file. Load the file to another treeview. Updated! New useable interface! Faster!
Select item in listbox on mousemove; Drag an item to different position; Most source from MSDN , two lines from yours truly.
'This simple piece of source code will 'show you how to call and play Mp3, 'Mpeg, Midi and Wav files without 'using any extra controls. Simple and 'easy. Yeah what more would you want, 'well some extra buttons but they 'will be coming soon.
You may have noticed that in Windows the Browse Folder dialog is used in may programs, even the shell if you have used the find program you can choose browse and the folder below appears.WITH NO NEED FOR MODULES!!! You can implement this dialog bow into your applications very easily by using the following API calls. SHBrowseForFolder SHGetPathFromIDList lstrcat
This is a big update from the other editor I posted here. This inlcudes: A status Bar, which holds the tooltiptext, A Tab Strip, and updated use of the CommonDialog Control. In this code, you will find out how to convert an ASCII (from a file) string to Hex and then Decimal. Then convert the decimal back to hex and write it back to the file. This is code also includeds a lot more intrinsic documentation. 9K Download......Ha! Have fun with this baby. UPDATED: MARCH 11th 2000. Now uses an UpDown Control in sync wiht the txtCASH control.
These are two functions I wrote to save and load a treeview's nodes (saves the .text, .tag, and .key properties) to and from a text file. This is a very simple code and should be very easy to incorporate to any project.
This code will read a file line by line and create a comma delimited text file which can then be imported into Excel.
This code allows you to copy any file, including your application to another destination at runtime. Note: This code has only been tested on Windows 98 using Visual Basic 6.0
Drag & Drop file(s)
This is the 'lite' version of the MSFlexgrid Editing code I posed on the 12th. This version does not use any TextBoxes at all. It has pretty much all the same features as the 'full' code, but a lot less code. Unless you're pickey you'll never know you're being faked out. 9-24-99: Major Additions (1) erases current cell and restores it again. (2) ADD, DELETE, INSERT, EXTRACT rows / cols.
This Code shows you how to copy, cut, and paste with only a few lines this is very easy to do. This is the CODE and not just some garbage like those other copy, paste, and cut. AND IT WORKS!!!
This function attempts to delete all files and subdirectories of the given directory name, and leaves the given directory intact, but completely empty. If the Kill command generates an error (i.e. file is in use by another process - permission denied error), then that file and subdirectory will be skipped, and the program will continue (On Error Resume Next). EXAMPLE CALL: ClearDirectory "C:\Temp\"
This is an update to the Pack File class I wrote some time ago. A request was emailed to me asking how to view the contents of the pack file generated by the class. I updated it to do this. Enjoy.
This code demonstrates how to send formatted text and images to the printer at specific locations on the page.
You know the hex read out that a hex editor would give you. It does create one of them using a hell of a lot of string manipulation and intellegnce. It is about as quick as VB would let you get and the princible can be used for just about anything envolving file manipulation, encoding, string manipulation, etc. Future versions will include a save function (easy enough to do but i dont have the time to do it now!) and the code will work in any version of VB (although you may have to copy and paste it from notepad 'cause the code was done in VB5)!
Kind of like skinning your program
I recieved an e.mail from Randy Porosky asking if can update the Application so it would search for multiple Files and list the Search Name only, well, it now searches for multiple Files and adds the search name to a seperate listbox. You would expect the search to take double the time when adding another File to the SearchList, but with a litte recursive programming it only adds approx 0.6 seconds to the search time. So again, this Application will search for multiple Files on multiple Drives, Folders etc, VERY FAST, eg. On my system it took 3.5sec to search 1079 Folders for 1 File, because of the recursive programming it took 4.1sec to search 1079 Folders for 2 Files.
Here is an INI File viewer using the Tree Node. Nice little screen shot of the proggie is available. Easy to learn how to use a tree node in your projects. Please leave me some comments on this. - I've updated this as a complete application. It's new name is IniEditor[TreeNode Style]. Uploaded 10/19/00.
OK folks, I've made a little progress. Here is the latest. This one has problems with any files but text files. If you put the first file in the pak as an executable, it extracts fine. But 2nd 3rd and so on, no way. This code is driving me crazy!!! A big thanks to Robert Carter for his help on getting me this far. Please keep your ideas a coming folks. I know a lot of people out there can use this if it can ever get finished and fixed. There are still bugs in the code. I don't have many error handlers in it yet. I want to get the basics of the code fixed first, then I'll go back and make this thing proper. This Code was fixed. Look for the AppenderPak by me. It is the same code as this but with fixes.