Results for "Category: Files/ File Controls/ Input/ Output"
Jpeg Comment. This is a demo how to read/write Comments into a JPEG file. The ReadJpgComment - function is written after rdjpgcom.c of Independent JPEG Group. WriteJPEGComment is written after some Delphi source.
This is not complete! it only saves in weird way. I am mostly submiting this to get feedback. I want to know if anyone has a better way to make the file it saves smaller and if anyone has a way to open it ;)
(Updates is on http://www.planet-source-code.com/xq/ASP/txtCodeId.26377/lngWId.1/qx/vb/scripts/ShowCode.htm) Fellow programmers. Ever wonder how one company's software reads a wave file and show it as a wave sample? This code demonstrated how you can read a wave file and DISPLAY it as a wave sample without using a single API! It opens a wave file (FOR RANDOM) to reads the so-call BINARY (ASCII) and draws the lines in a picture box according to the data in the file. Please note that the wave samples produces by this code are not as detail as those you found in some WAVE EDITOR. I'm still figuring out the wave format and try to play the sound. If you know a function that can play sections of a wave file, generate sounds at different volume and frequency or directly make the speakers (connected to the sound card) vibrate at different frequency and volume, please send me an E-mail...Thanks.
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.
Delete a folder, with all it's subdirectories.
This is a VB-friendly interpretation of a reliable method for accessing the myriad of Windows special folder paths in their resolved states. If you need to know the full path to the Desktop Folder, Startup Folder, and many many others, this function will quickly get you there.
This is a VB emualtor project for the Intel 8086 It opens .com files and emualte a few opcodes. My Idea was, to write a "retro" emualtor for old days who many peoble spend a lot time for. My Goal: Adlib emualtion, VGA/EGA and VESA emualtion. I`m going max. to the 80-286. NEW 0.2. Now R/M byte is supported!!! + a few new opcodes
Next Generation Key Catch 2004 SECOND Edition has 3 new features. You can now press F keys to do certain functions. There is also an F key to hide/show from ctrl, alt, del and from system proccesses. Third Edition will have a server/client for getting keys pressed on a remote computer. Happy keylogging!
Check out this code. It will create a standalone EXE that will run on any x86 machine, OS independent. Also, extremely small file. An exe with "Hello, World!" is only 23 BYTES! It is truely amazing!
Dirguard guards a directory for changes like addig files, deletions, renaming, adding / deleting subdirectorys. Some other small gadget have also been inserted in the code. This is an update of previous version(s) and also the final version so i made it 2.0, i would like to spend more time on it but a new project awaits. Please rate this code and report problems / questions or comments to me. The code is tested on WIN-NT (4-sp6) and Win98(SE) and worked fine (WIN-NT users read the code-comment for additional information).
This will take a list of waves (RIFF format most popular by microsoft) and properly merge them with a new header on the output file. I have submitted file mergers in the past and people complained on how it didn't work with wave file types since they have headers that tell it how to be played so this is the reason i wrote this project. If someone out there can merge a couple with different sampling rates or bitspersample and send some feedback on what the end result is then that would be appriciated, i havn't had time to test this out fully, it just works as far as i can tell with the wave riff format. Email me at mikecanejo@hotmail.com for any questions that you have since i didn't comment much on this since its a simple method i thought. Good luck tell me what you think and please don't forget to vote if you like it.
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 VB code shows how you can use ADO and Microsoft Scripting Runtime Library to transfer data from a database table to a text file.
(******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: MikeCanejo@hotmail.com for anything. ;]
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...
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: mikecanejo@hotmail.com AIM: Mike3dd
Kind of like skinning your program
It add Bytes to a file.
Include a file in your program.
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.