|
|
|
|
|
Total Hits: 195 | 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: 111 | 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: 117 | 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: 197 | 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: 187 | 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: 103 | 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: 290 | 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: 13 | Today: 0
|
Author: Malli_S
|
Rating:
|
|

A few months ago, one of my colleagues was using a tool that was managing multiple desktops. I was wondering how the tool could manage multiple desktops. I thought it would be just hiding-and-displaying the application windows for different desktops when a user switches between them. As a matter of curiosity, I started studying multiple desktops and ended up with this article....
|
|
|
|
Total Hits: 14 | 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: 4 | 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: 13 | 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: 17 | Today: 1
|
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: 16 | Today: 1
|
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: 6 | 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: 4 | Today: 0
|
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: 1 | 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: 4 | 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....
|
|
|
|
Total Hits: 3 | Today: 0
|
Author: eRRaTuM
|
Rating:
|
|

Everybody needs at least twice a file splitter utility. One day I created my own just to do the things to be done :), and then I realized that I could make it run much faster (the FileSPlitter v0.1 runs @ 1~2bytes/hour ^_^), so I inserted some multithreading, some event handling, enlarged the cache used, and of course, rewrote the split and merge methods. Now, it's quite fast: up to 20 Mb/s....
|
|
|
|
Total Hits: 6 | Today: 0
|
Author: wenjunw.comnt8
|
Rating:
|
|

Visual Studio .NET 2003 and its earlier versions are great, and are becoming the first choices for .NET application developers. You create a new project, and then develop and compile the code. But, there is a pain when you want to deploy your working file to production. Although you can create a deployment project to build the MSI installation, in many cases, you don't want to build the MSI. Instead of a bunch of junk files mixed with your working files in your project folder, you simply want to...
|
|
|
|
Total Hits: 4 | Today: 0
|
Author: Paul Sanders (AlpineSoft)
|
Rating:
|
|

Surprisingly, neither the C++ runtime library nor the Win32 Platform SDK provides any routines to read and write Unicode text files, so, when I needed some, I had to write my own. There are three reasons why you might choose to use these routines over others you can find out there on the Internet and elsewhere here on CodeProject: performance, performance and performance. And convenience. You can read and write any or all of ANSI, UTF-8, UTF-16 little-endian and UTF-16 big-endian files with no c...
|
|
|
|
|
|