Advertisement

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

7_2009-2012 #226181
Sense The Splash Screens Used By Windows

This program is a simple application that is designed for one thing and one thing only: It senses the "Splash Screens" used by Windows when you start up your computer, the computer is in the process of shutting down, and when Windows prompts you "It Is Now Safe To Turn Off Your Computer," or whatever you have it set to. This program allows you to copy those images to the clipoard, as well as "Refresh" them. If for no other reason, check this program out to learn what files Windows uses for the pictures behind the splash screens, and how to load pictures into pictureboxs/images on runtime, a function that is VERY helpful when skinning. This could be useful for people attempting to make their own themes. By using the knowledge that I gained from this application, I wrote a program that changes those screens to some special files that I made. P.S. Throw a vote in my direction if you can find the time: You have no idea how long it took me poking around in my hard drive to find these files, and to figure out how to load pictures on runtime. And for those of you wondering how you load pictures on runtime, this is the simplest code available. Example: Private Sub Form_Load() Picture1.Picture = LoadPicture("C:\Windows\Bubbles.bmp") End Sub

7_2009-2012 #226182
Drive Browser Example

This is a fairly simple code that is an alternative to Windows Explorer or My Computer. An example using the DriveListBox, DirListBox and FileListBox, this code was "inspired" by File Browser, uploaded a few days ago. However, I wrote every line of code in it except for the "Error" section, you'll see when you download it. This application distances itself from most, maybe all of the other file browsers on PSC because it enables you to OPEN files from right within the application, by using the Shell ("Start ") API call. This enables you to open all types of files that are associated with an application, not just open specific files. This function does not ALWAYS work, I don't have a clue why not, but if anyone could point out why this is happening, if they could post an UNDERSTANDABLE comment, it would be greatly appreciated. Now, if you think this code is worthy, throw a few positive comments amd votes my way, and bear in mind, I'm 11 and this is in the BEGINNER category. Some of you seem to derive some strange pleaseure from rating beginner code at the intermediate, or even advanced level. I hope this Drive Browser comes in handy or teaches you something!

7_2009-2012 #226187
RAW Printer

This class sends text, files, control codes directly to the printer spooler bypassing the print driver. This lets you send print files to the printer or control the printer by sending the appropriate control codes. The name of the print job can also be set. Works with any windows printer, not just LPT1: printers. See comments in the class for usage.

7_2009-2012 #226207
File Mapping Class Module Plus a Portable Executable (PE) Format Verifier

This is a DEMO Application on Using my FileMapping VB Class Module to Simulate the use of File Mapping APIs Used in Visual C++ and Win32 Assembly, Why in Visual Basic, Why Not? FileMapping Class Module ======================== Tired of using the traditional Visual Basic File Handling Routines, or even FileSystemObject failed to read to a file byte-by-byte, or you want to Access a File Using Pointers for Better Scalability Performance, while Some Anti-Virus Blocks the use of very useful FileSystemObject, File Mapping Functions comes into a handy set of routines just waiting for you to use them, and take note, we people as Visual C++ and Win32 Assembly uses this functions, because we dont have easy macros. Why use easy routines, and limiting your performance, use File Mapping, thats the only way!!! yup, Visual Basic doesn't support Pointer Variables, but there is a CopyMemory "RtlMoveMemory" to do the same effects (a little slower than the real pointers but that will do just fine) Included in this ZIP file is my Class Module to perform FileMapping and a demo Project on how to use the File Mapping by Traversing to an Executable format and checks whether it is a valid Win32 Portable Executable Format and finally checks what type of PE it is, PE32 or PE64 ======================================================================== This code checks for a valid PE Executable Format To understand this Application, you need to consult your nearest PE Documentation. Win32 Assembly Codes are included in Comments are 100% working on TASM32 Compiler, Created by: Chris Vega [gwapo@models.com] http://trider.8m.com

7_2009-2012 #226208
Portable Executable (PE) File Header Viewer Plus Image Checksum Calculator

To study one File-Format Structure, is a "TRUE" advanced task for a programmer, offset-by-offset and byte-by-byte definitions, and studying the Executable Format of the system you are working on one of this tasks. But to study a format, you must have a Viewer and a Format Description itself from the File-Format author/developer or by scanning through the use of Scanners/Detectors. Using the FileMapping Class I recently submitted to this Server, I have created a Portable Executable Viewer, an Application capable of: - Has support for Portable Executable 64-Bit - Opening and Detecting Portable Executable Type - Recalculating Image Checksum - View MS-DOS Compatibility Headers - View Portable Executable Headers - View Optional Headers - Generating a Full Report

7_2009-2012 #226219
File System 2.4

File System 2.4 is an ActiveX DLL that i made to make editing files easier. If you don't want to use a database for whatever reason, (like to little data in your project) text files are probably your next best bet. With this DLL (source IS included) you first call a function to set the file you are working with. Then you use fuctions like XAppend to append to the end of the file, XAddToLine to add some text to the end of the line by entering an any length string that the line begins with and it finds the line and adds the text to the end of it. You can delete lines with the function Xdelete, where you specify an any length string and it finds the line that begins with it and deletes only that line from the file. Use the DLL in your project by going to Add Refrences and selecting the DLL. All the features are then avalible for you to use in your project.

7_2009-2012 #226234
clsINI Fast, easy, robust INI manipulation

Ever wanted an easy way to store settings for your program? The registry is great and all but it's hard to check to make sure things are saved correctly and if you're not sure what you're doing you can clutter it up with junk quickly. The ini class can be compiled into a stand-alone DLL or included directly into your project. It has methods to create, delete and rename, sections, keys and values within a file making storing settings a breeze! If you have any questions or comments please post them here or email me at ebdalqui@mtu.edu

7_2009-2012 #226268
read & write executable file. NO API!!!

This project shows how you can write values to an exe file (and change it). NO API and highly commented. First, make the test_exe.exe. Then start read_write project, change values and click Write. You'll se that test_exe.exe has changed!!! Please vote and leave comments.

7_2009-2012 #226286
File Date

This code is useful to read/write the files' dates (creation, last access, last edit).

7_2009-2012 #226287
Binary Resource Creator v1.2 **UPDATED**

Use this nifty program to combine files into a single binary file. Allows you to Combine and Extract files using a simple, easy to use, interface. Great for protecting your files when you distribute your apps/games. Also keeps your files seperate from you EXE so to update your app/game's graphics or sounds etc all you need to do is redistribute the binary file. If you like it a vote would be nice. If you hate it please tell me why. =] Vist my website www.pointystudios.cjb.net Version History: 1.2 -Added ability to select the destination extraction directory -Added a "Add All" button so you can add all the files from a dir to the list. 1.1 -Fixed some minor bugs -Added ability to remove files from list. -Added error trapping 1.0 -Release version.

7_2009-2012 #226310
File System Functions

commonly needed file macros you hate to code over and over. Functions: GetFolderFiles, GetSubfolders, FileExists, FolderExists, SafeFileName, Read/Write/AppendFile, GetFreeFilename, FileNameFromPath,ChangeExtension, etc.. anyway this will help you clean up your code alot and make it more readable Dont forget to check my sight for more stuff: http://geocities.com/dzzie

7_2009-2012 #226339
Prepend PE(VB) to a PE file w/o damage to the original PE

I made this project after reading a paper about asm. they were talking about how programers were amazzed to find out that a program will still run even when appended by another. then they took it to the next step, prepending an still getting it to work. then an even greater step, filling the programs white space up with code and running the program + the code that filled the white space without any errors. i got it to work in asm and wondered if there was any way to get any kind of prepend, append, or white space fill effect in a vb writen app. all i got was the prepend. append only worked if i knew what compiler made the program (masm hehehe, not vb6 or vc++...sorry lads).

7_2009-2012 #226378
Zipping with Info-Zip

This is an easy to understand example how to use the great Info-Zip Dlls (www.info-zip.org) to zip or unzip files or directories. The basics of this code, the included wrappers, are not by myself and will be supplied automatically if you download the Dlls from info-zip.org. But I have to work a lot to understand how to use the Dlls in my own manner. This code shows simple to use zip routines: zip a file or directory, unzip a file or directory, unzip a single file of a zip file, delete a single file of a zip file, show the file names inside a zip file. Please vote. ---------------------------------------------- Update 08/17/2008: Fixing some severe bugs in the unzip routines.

7_2009-2012 #226437
Read All Extensions in A Directory

I wrote this for someone who needed to know how to read in all the file extensions in a directory and keep updating it when changing directories. It uses InStr to find the "." and then does a bubble sort (not efficient I know).

7_2009-2012 #226484
New NotePad (The Best)

New NotePad has the same purpose as Windows NotePad To Create and edit text files. With this new version it has line numbers to the left of the text which changes when you scroll with the scrollbar/Mouse scroll button. Also comes with line count. See the screenshot.

7_2009-2012 #226487
MultiUnzip

MultiUnzip. Used to extract files/folders from .zip files. have you ever downloaded a program/game and it's compressed into hundreds of .zip files. this prog extracts them all for you at the click of a button. See Screenshot.

7_2009-2012 #226493
Suppress Beep on KeyPress Event

This article will quickly and to the point show you how to supress the beep when the user presses the enter key in a single line text box.

7_2009-2012 #226644
BrowseForFolder

This one should behave like the FolderNameEditor class, but with public methods.

7_2009-2012 #226679
FileThing (Explorer)

File Thing (simple file explorer) This is a small project I made, for just having a basic file-explorer. It looks a bit like the windows explorer does nothing than browsing and showing the files in a directory. It has no real function except for being a base implementation of a file explorer. But doubleclicking a file is working ! So all additional functions you need can be added. All functions are well documented. Feel free to modify this programm to your own needs.

7_2009-2012 #226684
ShowGrid

Show data (e.g pictures ,for testing i used only labels) in an ordered and grouped way. It wasn't possible for me to show my data with the datagrid, cause the type of grouping i needed wasn't given. Especially when the data changes often or can be very different. Means that data changes their row and column type and soze based on internal logic. It supports reordering of rows and columns (like Displayindex). Autosizing of rows and columns depanding of content variable distances between rows, columns, items. a basic interface for dynamic contextmenus is given too. As i saw you can use it in many ways: show pictures, make calendar entries/appointments. It wasn't meant to be beautiful or fast. Cause I had my own needs for it.

Languages
Top Categories
Global Discovery