Results for "Category: Files/ File Controls/ Input/ Output"
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...
This is a .net class library (KeyboardLowLevelHook) to capture low-level keyboard events by placing a low-level system hook. Use this to track when a user presses some key / key combinations (in any program) and react to those events. The way these functionalities are exposed is very similar to the .net keyboard input scheme : the KeyboardLowLevelHook provides two events : KeyDown and KeyUp (same as on Windows Forms) that, upon instantiation of the class, fires whenever any key gets pressed / released. You can also prevent (block) key combinations from reaching other programs by setting e.Handled = True in the KeyDown and KeyUp events (see example). Note : Be careful when a KeyboardLowLevelHook is instantiated when debugging : keyboard input will react very slowly since the “hook callback procedure” cannot be called when the program is paused. Low-level keyboard hooks require at least Windows NT 4.0 SP3 to run. *Vote only if you wish to... Voting is voluntary : users should not be forced to vote. If you don't want to vote, that's OK! Simply don't vote!*
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.
This program controls a remote unit across a range. The OFF button sends a "FF" and expects an "FF" within 1/3 of a second otherwise it times out. The reason I uploaded this is because I could not find a serial program that worked using MSCOMM and ONCOM event. I did have trouble at first until I read that Microsoft has Rthreshold default as '0'-- it needs to be '1' for the received data event to be captured I realise this is a very simple program, but it WORKS. To check this out place a wire/short between pins 2 and 3 on your DB9 serial port. This will route TX to RX on the same port. I limited it to COM1 and Com2 but others can be added. I hope this helps someone trying to use the serial port.
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
Lists all of the files in a directory matching the pattern entered in the form.
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.
Alot of people want there programs to be more popular, this is the way, if you have the only program that will save to a particular format, then everyone will HAVE to use your program to open there files. And it will HAVE to become FAMOUS!!! Plus it's really cool to have your own Extention. My programs shows you alot of stuff: 1)How to make your own Extention 2)A simple way of formfades 3)How to save useing Common Dialogs Filters 4)How to copy a picture to your Clipboard 5)Comes with detailed Instructions It's simple for any begginer or intermediate!!!
Get the Serialnumber from your harddisk, cd rom or your disks.
Copy a Folder in another Folder. If the Folder not exists then this program will create the Folder.
This project shows/explains all routines needed to manipulate sections/keys/values within an ini file. It has an intuitive interface, allowing to drag keys between sections, create/delete sections/keys/values, etc, but the routines can also be used individually with other projects. A must have to whom works with INI Files.
This program is a backup program designed for people who need two seperate backups. Initially, i had built this for work, however i figured u guys should see it. It does an hourly backup, as well as a monthly back up...all of which you set. Also, it will save the whole directory and sub directories into the backup folder that you pick. Backup wiz will also allow you to pick network drives!!! Unfortunately, Planet-source-code does not let you put OCX's in zips anymore, so read below about where to find it. I have some webspace just for that ocx that is about an 8 k download
This code is designed for reading text files. i have written this code because i did not want to use the slow "open for input..." and "freefile" bla bla code... I know i coul do this via the richedit control, but i wanted to know how to do it via api, and maybe you to... This code is using the "CreateFile" Api, which must be called differently in windows 2000. Therefore, i added a "IsWin2000" function to check for windows 2000. Update: Now added a class which wraps the module, lot's of events and functionality. it's 50ms slower in read (with my test file) Class module includes also function ReadCharacters which reads the specified ammount of characters from the open file.
Listen to your exes! Write your own wav-files. This program turns any file to a wav.*-file. Learn the wav-header. Feedback please!
Well, my IGCSE mocks just finished yesterday so I was thinking what to do...so just to brush my skills (:D), I made this... We all know what the heck are INI files (if you don't, read their brief description at the bottom)...but did you know that these INI files have a size limit? YES! You see, when you call the Windows API, you will not be able to read files that are bigger than 10kb (on win 9.x i think...correct me if I am wrong) and 64kb on win me/nt/2k. So the next time you try to read a value that is held in position after the 64k/10k mark on a file, all u'll get is a blank (you can do the GetLastError API to see what error was, never tried it though). But HO HO! (look who comes to the rescue) During the past 1 and a half hours (or something), I just wrote a class that will read INI's all by opening them for input and output, and ofcourse, parsing them on their way. So now, throw away ur existing API INI classes and replace these. Features: 1. No more INI File size limit 2. Useful for writing file formats. Yes! For example, I previously wrote an INI script format(crazy idea, huh?) in which some values of keys were actually the names of other keys and in this way, a flow of data can be formed that doesn't have to follow hard-coded format. 3. As fast (well, almost....now, reading a teeny weeny value from a 500kb file that contained 50,000 items took 5 seconds or something on my computer...btw, the file was generated to test the class. Also, there is hardly any noticeable difference between the API and this class even if the file is smaller than 64k). 4. Other features that were included were: Read/Write value (basic INI I/O), Delete a key, Delete the whole darn Section, get all sections (only sectionsuseful for enumerating...file formats!), get all keys with their values all together (useful for enumerating...again file formats!), write values all at once from an array (instead of doing them one by one, which may get slow). 5. It's a drop-in class...just drop and use! very easy parameters to follow :) WHAT INIs ARE: INIs came along with the advent of Windows OSes. They were initially (and, well, still are) are used for storing settings of a program. You can say INI is a standard file format for saving settings (I say standard when I mean Windows standard). Windows supplies APIs that make it easy for us, the developers, to read and write values using just plain strings, which the Windows APIs organises into a format in a file. The format is: 1. There is a section that represents a number of keys (both of which you set) 2. There are keys that represent values (you set the values too) 3. Then there are other sections, 4. with other keys, 5. with other values. 6. blah blah and oh ya, I didn't do an example cuz I think almost everyone might have come across INI files (and anyway, it will take only 3 lines max to write a value to a file using this class) (vote if you like :D...I dont mind, nor do I bite...so criticism [not in a harsh way, mind you] may be appreciated.) Tata!
Here you can make a new folder with just ONE line of code. You decide where you wanna place the folder(like 'c:\New Folder\Sub\'). You don't need any extra OCX's or other kind of controls so just take the code and enjoy it. The code is very useful to me and im sure it will be to you too. /Author
This with use vb's link.exe to decompiler your exe to a text file.You will be amazed on what you see.the res file included needs link.exe added in it.this gets extracted during load to the apps current directory.Just to keep things stable from corrupting your main vb6 program.This is intented to help assist in develop a real decompiler. the tools are right here under everybodys nose!!
DoDi's vb3 decompiler has been decompiled and converterd to vb6 source code.needs to be completed but I figured with the assistance of you we could actually get a real vb6 decompiler would appriciate your feedback rons_xemail@yahoo.com
Directory Tree View. This is an activeX control which which looks like windows explore Folder view. This is to display on you drives in a tree control and and desktop, plus my documents and much more.
This little program lets you alter file dates: date created, date last modified, and date last accessed. Download is just 7.2 kB. Give it a try. Update now lets you also drag'n'drop files onto the app without using the browser.