Results for "Category: Files/ File Controls/ Input/ Output"
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...
This is an update to synchronize. This has the missing timestamp code, and if file exist code. It still synchronize two directories files. Making them duplicates of each other. Supports UNC naming.
This code can be made to take a certain chunk of your choice from a file. Mainly for making resumable downloads etc, or working on a patch for a program... I made this cos im working on a file sharing program that downloads from multiple sources. SERVERAL UPDATES HAVE TAKEN PLACE (thanks to guys who posted comments improving the code)
This is is originally from Mark Withers . Mark Withers Mark Withers Mark Withers I do not want anyone to tell me I steal code. I just wanted to show Mark how to Update is code... I got it running under 1 second for a 20 Mb file... yes!!! under 1 second no, no API required... only pure VB optimization... I first calculated all FileLen and Len before the loop... this is THE optimisation that did all the thing then I used a buffer for looping through the file and I added null chars at the end of the dll name if it was too short, because in C++, strings ends with null chars I hope this helps you Mark Best regards, Jean-Philippe Leconte Senior programmer Win32/64 expert C++ / VB
Replicate folders with just a button
I am a fair VB6 programmer. I have taken a trial version of VS.NET. I decided to play with the new Owner Draw Menus. After around five total rewrites I am happy with these results. Simply follow the instructions in the Class #Region "Usage Notes" and you will instantly have XPStyle Menus without coding. Don't ask me how to get the real colors though as I gave up there(So many settings affect each one).
Even though you didn't seem interested in my TabPageXP submission, I have Updated it to a full Control. It has inherited the TabPage reordering bug (SelectedIndex) and has introduced a new one (well only one that I have found), adding Tabpages through the Collection Editor is fine, but if you add through the designers contextmenu you will get a standard TabPage. The TabPageXP Class has been updated to remove the flicker that no one complained about.(well at least on my P4 2Gig). Written in VB2003 Final Beta so the solution will not open in VS2002 (Sorry about that, but I don't have VS2002 installed since my Hard drive died).
It put a password to any .exe file.
This is a very easy way to add a Tree View (like the VB Control) in your html page. With 1 function, add TreeViews with or without checkboxs and links. If you like it, vote for it ! Simon