|
|
|
|
|
| | Total Hits: 38 | 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: 13 | Today: 0 | Author: KarstenK | Rating:  |
| |  I was working on a Shell Extension COM project which wanted the IExtractIcon to be fed, and because it was over FTP I had a problem fetching icons to get a nice GUI. That's why I looked in CP for a solution but found none. So I developed my own approach to this task and now I think it is an interesting piece of code.... |
| | Total Hits: 28 | Today: 0 | Author: Balaji Lakshmanan | Rating:  |
| |  File operations like File.OpenRead or the FileStream constructor would throw a PathTooLongException when presented with an absolute path of length greater than 260 characters. Looking at the Win32 API, I found that the CreateFileW (Unicode) version of the function supports long file names up to 32000 characters if the file path is prefixed with a \\?\. I went ahead and created this class that has Open methods similar to File.Open/OpenRead/OpenWrite to make the interface consistent.... |
| | Total Hits: 16 | Today: 0 | Author: Fess | Rating:  |
| |  There are no methods in VS for copying files and directories (with subdirectories and files) based on API functions. It's necessary to use SHFileOperation function from shell to do it. Sometimes it's inconvenient and this code is designed to fill this space.... |
| | Total Hits: 21 | Today: 0 | Author: Doru Cioata | Rating:  |
| |  The CUseShGetFileInfo class is built around the use of ShGetFileInfo() function. It's a very simple class, but I think it can be usefull. You will not have to worry anymore about setting flags and it also works for names of files that do not exist. You don't need to know the full path for a certain file in order to obtain its icon, file type or its icon's index in the system's image list (both large icons and small icons). It also provides a function for obtaining a handle to the system's image ... |
| | Total Hits: 31 | Today: 0 | Author: PJ Arends | Rating:  |
| |  This class is used to create and maintain a rotating log file. The user specifies the maximum size of the file at creation time, and when new entries are added to the file, the oldest ones are dropped, so that the maximum file size is not exceeded.... |
| | Total Hits: 14 | Today: 0 | Author: =[ Abin ]= | Rating:  |
| |  Like many did, I started using computer when DOS 6.x was the main operating system, I was so used of it that now almost ten years passed and I still remember those DOS commands so very clearly, that like I was still typing them yesterday. I do file/directory manipulation a lot in my programs, every time I wanted to copy or remove a directory including all its files and nested subdirectories to/from customers disk, I thought of those DOS commands, such as "xcopy", "deltree". Of course those can b... |
| | Total Hits: 26 | Today: 0 | Author: Roger65 | Rating:  |
| |  Sometimes while developing a new project you would like to know the value of the compiler's predefined macros. You can use this tool in two ways:
1. Setup the folder, string, file type, and click Search. The result is displayed in the list box. You can now double click an item and the appropriate Windows program will be called (notepad.exe or MSVS_IDE). 2. Setup the folder, string, file type, and click Search. Close this program and open the Log.txt file in notepad.exe where you ... |
| | Total Hits: 30 | Today: 0 | Author: blackjack2150 | Rating:  |
| |  Hello everybody! This is my first article here. It's nothing fancy, but it can save a lot of trouble if you need to include a simple image -> PDF convertor in your .NET application. Please forgive any spelling or grammar mistakes which may follow.... |
| | Total Hits: 124 | 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: 126 | 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: 206 | 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: 198 | 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: 9 | 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: 33 | 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: 33 | 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: 62 | 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: 17 | Today: 0 | Author: Pyatex | Rating:  |
| |  Ok, lets get started. CSplitMX adds file splitting capabilities to any Windows application written in Visual C++. I have always wanted an easy class that allowed me to split files into smaller pieces but only could find either VB sources or none at all. I have then decided to write the class myself. The source is relatively easy to understand even if they are not commented, but anywhere here is the rundown. To use CSplitMX include the two files Split.cpp and Split.h in your project and link spli... |
| | Total Hits: 29 | Today: 0 | Author: Ibrar Ahmad | Rating:  |
| |  When I wrote my first article on codeguru "Expandable Buffer" I saw there were lot of people seeking a Circular File. Hence I developed my own Circular File, and wanted to share it. Its interface is so simple.... |
| | Total Hits: 32 | Today: 0 | Author: Achim Klein | Rating:  |
| |  Most applications have to handle path names somewhere along the way. This simple class (actually it's more a collection of static methods) provides nine functions that make the different parts of a path accessible. Groundbreaking ideas are not included, but creating relative path names in any direction across a drive might be a useful feature.... |
|
|
|
|
|
|
|
|
|
|
|
|
|