|
|
|
|
|
Total Hits: 32 | Today: 0
|
Author: Joe Enos
|
Rating:
|
|

Recently I needed to compare binary files to ensure that they were identical. I used a file compare application that I typically use to compare text files (ExamDiff), and it took a ridiculous amount of time and ate up a lot of CPU. Since all it was doing was determining if they were identical or not, it seemed like it was doing some unnecessary work. I decided to put together an app myself with the sole purpose of determining if two files are identical....
|
|
|
|
Total Hits: 201 | Today: 0
|
Author: Jeffrey Walton.
|
Rating:
|
|

As Unicode becomes more popular, programmers will find themselves performing more file based operations using Unicode. Currently, familiar MFC classes such as CFile and CStdioFile do not properly handle reading and writing of a Unicode file. The class file presented addresses the need to read and write files as UTF-16 Unicode files. There are two downloads associated with this article. RevisedCUtf16File.zip is the February 2005 release of the code. RevisedCUtf16File.zip is Jordan Walter's revisi...
|
|
|
|
Total Hits: 118 | Today: 0
|
Author: Alexey.
|
Rating:
|
|

This classes is useful for work with dbf files. The current version supports formats: FoxPro, Visual FoxPro, dBASEIII - dBASE 5.x, Clipper and HiPer-SIx. The memo fields also are supported. CDBFRecordset provides all the useful functions for navigation and modification in table. CDBFCursorset it is possible to use for work only with the selected records. CDBFTableDef it is used for creation and updating of structure of the table....
|
|
|
|
Total Hits: 121 | Today: 0
|
Author: PJ Naughter.
|
Rating:
|
|

Welcome to CSMTPConnection, a freeware MFC class to support the SMTP protocol. SMTP for those not familiar with all the internet protocols is the protocol used to send internet email. For detailed information about the Simple Mail Transfer Protocol you should read RFC 821, Other documents that these classes refer to are RFC 2045 (which defines how MIME attachments are to be handled in a standard SMTP message) and RFC 822 (which defines the way standard headers which SMTP uses)....
|
|
|
|
Total Hits: 203 | Today: 0
|
Author: Sebastien_Lachance.
|
Rating:
|
|

Since I have posted the article NDK 2.0 (Network Development Kit), I received many emails on how to send and receive a file using the NDK. For those who does not know the Network Development Kit 2.0, the NDK 2.0 is a set of simple classes for a client-server architecture using the class CSocket from MFC. With this article, you should be able to understand easily the process about sending and receiving a file with the NDK. This article contains 2 programs: an NDK File Transfer Server and an NDK F...
|
|
|
|
Total Hits: 192 | Today: 0
|
Author: Aston Martin.
|
Rating:
|
|

This article presents a simple COM object to read the version information of a given file. The version information returned is the same as what appears in the Version tab of file properties in Windows Explorer. It is fairly easy to use this component. Initially, I designed this code in C++ as a class, with a constructor taking a filename as the argument. Then, I decided to make it a COM component to cater to a wider audience (and also so that I can use it in scripts). It can be used in any langu...
|
|
|
|
Total Hits: 111 | Today: 0
|
Author: jeff@jgaines.co.uk
|
Rating:
|
|

I seem to spend a fair bit of time managing files on my PC, and don't find Windows Explorer the easiest tool to use. I prefer a nice simple approach. The files I want to copy/move are on the left, the place I want to move them to is on the right, I select the files, then click a menu that says Move/Copy/Create Shortcut, job done. I also like to keep notes about files so I can remind myself what they are, and also search for a file I know that I have somewhere - and although this is possible in E...
|
|
|
|
Total Hits: 303 | Today: 0
|
Author: Fred Ackers
|
Rating:
|
|

This article shows how to read a file from Internet Explorer's cache, and write a file to the cache. Retrieving the local cache file name of a URL is simple. You call GetUrlCacheEntryInfo with the URL, and it will return the local file name. The function will return TRUE if the URL is in the cache, and FALSE otherwise. Then, you simply read the page and display it, or do whatever you want with it. Alternatively, you could use the function RetrieveUrlCacheEntryFile or RetrieveUrlCacheEntryStream ...
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Naveen
|
Rating:
|
|

It often happens to me that when I try to rename or delete my current working folder of a project, it gives an error message like, "Cannot rename BlaBlaBla: It is being used by another person or program". Almost at all times, I fail to find this other program/person and end up restarting the machine. Since then, I have been searching for a method to find the list of files that an application uses. Even though the ProcessExplorer of SysInternals lists the files opened by each process, it is hard...
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Charles Cox and Michael Klucher
|
Rating:
|
|

While playing a video game, have you ever thought to yourself, "I could put something together like this"? XNA™ Game Studio Express is a new game development solution for both Microsoft® Windows® and Xbox 360™ targeted primarily at students, hobbyists, and independent game developers—people like you!...
|
|
|
|
Total Hits: 4 | Today: 0
|
Author: Martin Brandl
|
Rating:
|
|

Getting the version information of a file is usefull in many cases. Maybe you want to check the version of a library before you load it to ensure not loading an old one, witch can result in unexpected software behaviour. Or you simply want to display the current version of your application in the about-box. This class allows you to that in a very easy way....
|
|
|
|
Total Hits: 4 | Today: 0
|
Author: Raymund Macaalay
|
Rating:
|
|

I recently had noticed that deleting a file in SSIS using the File System Task is not straightforward specially when your file is not hardcoded in your package but it is declared as a variable. I just noticed it when I was creating a Foreach Loop Container using a File enumerator....
|
|
|
|
Total Hits: 27 | Today: 0
|
Author: BenDi
|
Rating:
|
|

Lately, I often need to get all the sources of the project together with all the dependencies etc. So, I looked for a tool to select all the desired files and copy them to a single directory. Since I didn't find one, I wrote one....
|
|
|
|
Total Hits: 12 | Today: 0
|
Author: John Jiyang Hou
|
Rating:
|
|

This program can dump a file (either a binary file or a text file) to standard output in a DOS window in Windows. It is a Windows edition for the famous od program in Unix/Linux. It is also a free program that implements a main function like a similar program in Windows, UltraEdit. It can dump a file in 10 different data types....
|
|
|
|
Total Hits: 27 | Today: 0
|
Author: rj45
|
Rating:
|
|

This tool parses out your classes and their methods from header and CPP files. It turns out parsing out classes and methods in your C++ projects is actually very easy (if you don't need it to be life or death accurate). I'm not sure this is particularly useful; I had a specific use for this, and I just found it kind of interesting how easy it was. I'm sorry the formatting is wrong here, but CodeProject ate my whole article twice now, so I'm sorry!...
|
|
|
|
Total Hits: 37 | Today: 0
|
Author: Daniel Grondin
|
Rating:
|
|

This is a simple logger that can output to *.html or *.log. I needed a reader-friendly log file for my game and apps. So, I woke up, one morning, and I thought that HTML log would be the most readable, but quite hard to code for me, as I am not a pro in C++. On the other hand, plain-text log files are the easiest way to code a logger, but quite hard to read for a game player. I passed two compete days to find the best way to code it....
|
|
|
|
Total Hits: 31 | Today: 0
|
Author: nirvansk815
|
Rating:
|
|

The DirectoryList control is a custom listbox control that can be used:
* To keep track of the number of files and folders in a directory (drag and drop support). * To copy files from one folder to another. * To consolidate files from many folders into one. * To create backup folders of 700MB (the size of a CD-ROM). * To search for certain file types within folders....
|
|
|
|
Total Hits: 13 | Today: 1
|
Author: LiYS
|
Rating:
|
|

Having multiple threads running in your application the right way certainly can make it run more efficiently and be responsive, to just name a few advantages. MTCopy has this advantage. It starts by spawning a number of threads to cooperatively perform I/O operations (multiple files multiple threads scenario, MMT) and divides large files to be copied into several sector aligned blocks (single file multiple threads scenario, SMT) if necessary, whereby you don't have to have your program blocked u...
|
|
|
|
Total Hits: 15 | Today: 0
|
Author: Arman Z. Sahakyan
|
Rating:
|
|

I wrote this tool to find duplicate files in my system, and I wanted to share it with you. As the main purpose of this article is to present the tool, there is relatively little to write about. However, I'll try to describe the basic mechanisms of the tool's implementation....
|
|
|
|
Total Hits: 19 | Today: 0
|
Author: Shup
|
Rating:
|
|

I’ve come across countless situations where routinely used utilitarian functions are simply not available, and coders simply have to write and rewrite them many times over. This is one of many articles in a series which will try to provide a collection of routinely used functions with example applications on how to use them, in the hope that they will be as useful to the many developers out there as it has been to me....
|
|
|
|
|
|