Results for "Category: Files/ File Controls/ Input/ Output"
Persian Calendar Viewer
Read and write INI-files.
This code will tell you how long it will take to download a file just put in the Size and speed it will do the rest
This code shows how to load an Explorer type treeview control using the FileSystemObject. The heart of the code is modTreeview, where all the work takes place. You can drop this module into your project, reference the FileSystemObject and go. All the code is here to show you how to load the treeview control, handle clicks and get the path back. Nothing majorly spectacular but handy. It is also fast loading because it doesn't load the next "level" until the user clicks...just like windows explorer.
There are two different programs which come in this *.zip file. One of them is about User-Feedback. The other code is about using edit boxes. This also comes with a really great e-book on: “Writing your first dialog based application using Visual C++.” I strongly recommend you read this e-book if you are just starting to program in Visual C++ (Uses MFC).
Allows you to reset the Created/Last Modified/Last Accessed date/time stamp on a single file, multiple files or all files in a specified directory. Works on all file types with all file attributes (normal, read-only, archive, system, hidden). Useful for setting uniform date/time stamps for a project deployment.
This lets you click a button by a text box, click a date, and it fills in the textbox for you. Instructions: unzip into a single directory and look to popupcal.asp for a demo. Added comments to popupcal.asp to answer some of the questions people have had.
This routine will allow you to convert any text document into an HTML document. This is a basic function that simply puts the template HTML tags into place and then adds line breaks after each line of the text file is read in. This would be handy function for converting large numbers of documents to web-format. This code would be used as following: Call FileToHTML("c:\autoexec.bat", "c:\test.html", "Auto Execute File", "maroon", "white")
This boolean function simply reads in two files and compares them to see if they are the same. It returns true if they are and false if they aren't. I quickly wrote this up to compare text files against template files.
A Visual Basic example of how to use FileSystemsObject and Regular Expressions to parse Counter-Strike game logs. Requires Microsoft Windows Script 5.5 which is freely available at http://msdn.microsoft.com/scripting
This program is meant to be a reference to creating your own caller ID program, not an off the shelf application that works for everyone. There are several aspects of this program that will have to be taken into account before running it successfully.
View whats happening in a programs memory in hex or alpha format. Just like a standard hex editor only it allows you to view the programs memory rather than the program itself. Has the option to edit values in the programs memory. Also includes a search facility to find hex, string or numeric values in the memory. Still a work in progress so code is a bit messy but it seems to function with no problems.
An update of my original hex editor with more functions. Please vote for me!!!
This code illustrates the use of the combo box control with no MFC.
This tutorial begins with basic HTML showing how to set data on a Modal Dialog and return that data to the original page using Javascript. There are a few tricks which will be illustrated that you'll have to use if you want to get the same functionality with ASP.NET pages. I've seen similar tutorials and samples on the web. Some claim to have modal dialogs but still allow clicking on the main window. Most don't show how to return multiple values from the dialog. Included in the .zip file is a web page called Instructions.htm which (you guessed it) includes tutorial instructions. The HTML source is in the HTML directory and the ASP.NET (C#) Project is in the DialogAspx directory. I have only tested on Internet Explorer 6.0 but I believe it will also work on IE 5.0. Please rate and post comments. Enjoy!
Easy way to convert between file document types. Must have MS Office on your system. If you have office 2007+ you can obtain a free MS plugin for further types of documents making it possible for this code to be adapted to convert to .pdf and others. No votes as code is adapted from code I found somewhere.
You can replace a file now or later. If you have apps that people use all day and if you make a change and have to replace the exe, but can't because someones in it, use this app. You enter the date and time for the replacement to happen. It'll tell you if it was successful or if there was a problem on screen. UPDATE - If a file is in use an the time goes past midnight the date will increment properly.
This program adds a toolbar without modification to the cWindow class. This program also incorporates a menu and a text edit client area. When the user clicks on the On/Off icon, a different message is displayed in the client area. This program performs no other function (at least, any useful function).
It's an example of using a few controls on a dialog box. The program doesn't really do anything useful.
clsFocus is a class that can be associated with a form, allowing to perform data entry checking and focus handling with almost no code at all..., just associate the form with the class, and create ONLY ONE validation Sub for all the controls on the Form, it's that easy... Please rate it, it just takes a while, I would love to read your comments...