Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Articles & Samples > Visual C++ .NET > File Management


Search:
What's New - What's Hot
Compare Binary Files  Version: 0.00     Price: $0.00  
Total Hits: 38  |  Today: 0Author: Joe Enos      Rating:  
Read Reviews | Write Review |  Your 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....

Getting Icons of Remote Files  Version: 0.00     Price: $0.00  
Total Hits: 13  |  Today: 0Author: KarstenK      Rating:  
Read Reviews | Write Review |  Your 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....

.NET 2.0 Workaround for PathTooLongException  Version: 0.00     Price: $0.00  
Total Hits: 28  |  Today: 0Author: Balaji Lakshmanan      Rating:  
Read Reviews | Write Review |  Your 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....

Copy, Move and Delete files and directories without using SHFileOperation  Version: 0.00     Price: $0.00  
Total Hits: 16  |  Today: 0Author: Fess      Rating:  
Read Reviews | Write Review |  Your 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....

An ShGetFileInfo Wrapper Class  Version: 0.00     Price: $0.00  
Total Hits: 21  |  Today: 0Author: Doru Cioata      Rating:  
Read Reviews | Write Review |  Your 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 ...

CRotatingLog - A simple rotary text file class  Version: 0.00     Price: $0.00  
Total Hits: 31  |  Today: 0Author: PJ Arends      Rating:  
Read Reviews | Write Review |  Your 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....

CFileManip: "DOS-Command-Like" File/Directory Manipulation  Version: 0.00     Price: $0.00  
Total Hits: 14  |  Today: 0Author: =[ Abin ]=      Rating:  
Read Reviews | Write Review |  Your 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...

Find Word  Version: 0.00     Price: $0.00  
Total Hits: 26  |  Today: 0Author: Roger65      Rating:  
Read Reviews | Write Review |  Your 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 ...

Converting Image Files to PDF  Version: 0.00     Price: $0.00  
Total Hits: 30  |  Today: 0Author: blackjack2150      Rating:  
Read Reviews | Write Review |  Your 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....

The alxBase classes for work with DBF files     
Total Hits: 124  |  Today: 0Author: Alexey.      Rating:  
Read Reviews | Write Review |  Your 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....

CSMTPConnection v1.36     
Total Hits: 126  |  Today: 0Author: PJ Naughter.      Rating:  
Read Reviews | Write Review |  Your 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)....

A UTF-16 Class for Reading and Writing Unicode Files     
Total Hits: 206  |  Today: 0Author: Jeffrey Walton.      Rating:  
Read Reviews | Write Review |  Your 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...

Version reading component (as in Explorer's Version tab)     
Total Hits: 198  |  Today: 0Author: Aston Martin.      Rating:  
Read Reviews | Write Review |  Your 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...

Deleting Files using File System Task in SSIS  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: Raymund Macaalay      Rating:  
Read Reviews | Write Review |  Your 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....

FileCollector  Version: 0.00     Price: $0.00  
Total Hits: 33  |  Today: 0Author: BenDi      Rating:  
Read Reviews | Write Review |  Your 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....

Parse C++ header and CPP files for class names and their methods  Version: 0.00     Price: $0.00  
Total Hits: 33  |  Today: 0Author: rj45      Rating:  
Read Reviews | Write Review |  Your 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!...

DirectoryList 2.0  Version: 0.00     Price: $0.00  
Total Hits: 62  |  Today: 0Author: nirvansk815      Rating:  
Read Reviews | Write Review |  Your 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....

CSplitMX - File Splitting Class for Visual C++  Version: 0.00     Price: $0.00  
Total Hits: 17  |  Today: 0Author: Pyatex      Rating:  
Read Reviews | Write Review |  Your 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...

Circular File  Version: 0.00     Price: $0.00  
Total Hits: 29  |  Today: 0Author: Ibrar Ahmad      Rating:  
Read Reviews | Write Review |  Your 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....

SplitPath  Version: 0.00     Price: $0.00  
Total Hits: 32  |  Today: 0Author: Achim Klein      Rating:  
Read Reviews | Write Review |  Your 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....


1  2  3  4  5  6  7  Next >> 


Disclaimer - Privacy
© 2002-2012 DevASP.net