|
|
|
|
|
| | Total Hits: 14 | Today: 0 | Author: IGx89 | Rating:  |
| |  Recently, I was working on completing a port of a Linux program to Windows. It's called mpgtx, and is a command line MPEG editing program. The port was pretty easy, since it didn't use many Linux-specific functions (and someone had already done part of the port), but I did run across one big problem: it would fail on any long MPEG-2 clip. I quickly realized that it was because the fseek/ftell functions use the data type long for file offsets, which is a 32-bit signed integer on most systems. The... |
| | Total Hits: 2 | Today: 0 | Author: xiaogi | Rating:  |
| |  In working, we often need to count how many lines our programmers have developed, including source code lines, comment lines and blank lines. This software, Counting ver1.1, is designed for that purpose. At first, I developed it to count my VC++ source code. Later, it was upgraded to count files such as VB, Java, ASP, JSP and so on. By comparison, I found Counting is more quick and more accurate, especially for some unfamiliar instances.... |
| | Total Hits: 13 | Today: 0 | Author: qweqwe | Rating:  |
| |  This class helps you to monitor files like in the DevStudio. If the file is modified outside your application, a message box pops up and lets you choose between ignoring modifications or reloading the data, thus discarding all changes.
If the file is modified, a message is sent either to the specified view or to the first view of a specified document. The message handler will call the reload function of the document class. The class should be thread safe.... |
| | Total Hits: 18 | Today: 0 | Author: Antonio Tejada Lacaci | Rating:  |
| |  I've been involved in some projects which required file gathering through directories and this class allows just that: gather file information recursively by directory and, as a bonus track, it also calculates 32bit file-checksum (note this is not NT's executables checksum calculated with MapFileAndChecksum) and 32bit file-CRC (with a borrowed code, I didn't feel like re-inventing the wheel and the other option was to review my Codification Theory notes and I'm a bit alergic to dust).... |
| | Total Hits: 11 | Today: 0 | Author: Samuel Gonzalo | Rating:  |
| |  CFileFinder uses CFileFind to perform a file search starting from a directory and including optionally it's subdirectories in the search.
* A list of file paths is mantained internally. * If we make use of the callback mechanism, new found file paths can be obtained immediatly. * The class allows not only searches based on a file mask but also on the file size, file dates, text contents and file attributes.... |
| | Total Hits: 27 | Today: 0 | Author: Hans Dietrich | Rating:  |
| |  This series of articles discusses three typical requirements when working with file resources (by that I mean, files that have been compiled into your program as resources):... |
| | Total Hits: 21 | Today: 0 | Author: Hans Dietrich | Rating:  |
| |  One of the most frequent questions I see about resources is, 'How do I update a resource while the EXE is still running?' Short answer: you can't. Theoretically, you could write a second program that would update a resource of the first program when it shuts down, but this is a Really Bad Idea. It is very common for programs to be installed in directories that are set to read-only for ordinary users, and with Microsoft tightening security, it is unlikely that any kludge would work for long.... |
| | Total Hits: 17 | Today: 0 | Author: Hans Dietrich | Rating:  |
| |  In Part 1, I covered some general topics about resources, and presented CResourceFile and CResourceTextFile, classes that allow you to read binary and text files that have been embedded as resources in your app. In this article, I will talk about CResourceZip, a class that allows you to read, search, and unzip entries in a zip file.... |
| | Total Hits: 33 | Today: 0 | Author: Kangaroo | Rating:  |
| |  I have been looking for a way to extract Rar files automatically, in a similar way as is done by WinRar. The article CUnrarDLL 1.0 by rich.w. was cool; however, it does not meet all of my expectations.
In this article, I have offered an MFC class to unpack Rar files using unrar.dll (from RARLIB).... |
| | Total Hits: 15 | Today: 0 | Author: Chesnokov Yuriy | Rating:  |
| |  I've written, some many years ago, a dynamic Huffman algorithm to compress and decompress data. It is mainly targeted to data with some symbols occurring more often than the rest (e.g., having some data file consisting of three different symbols, and their total number of occurrences in that file is s1(1000), s2(200), s3(30), so the total length of the file is 1000+200+30=1230 bytes; it is encoded, assigning one bit to s1 and two bits to s2, s3, so the encoded length is 1*1000+2*(200+30)=1460 bi... |
| | Total Hits: 13 | Today: 0 | Author: ljw1004 | Rating:  |
| |  This source code shows how to add zip/unzip functionality to your programs. Lots of people have written their own wrappers around Zip, and indeed there are several articles on CodeProject that are based on earlier versions of my own code. How is this version different?
* Clean packaging. There's one pair of files zip.cpp, zip.h to add to your project if you want Zip. Another pair unzip.cpp, unzip.h if you want unzip (or both if you want both!). There are no additional libraries or DLL... |
| | Total Hits: 27 | Today: 0 | Author: Marius Daniel Ciorecan | Rating:  |
| |  I developed this class because I needed a general class that will detect internally if a file is an archive, and then read the compressed files contained in the archive. For Zip and gz archives, I found the source code on CodeProject, in the articles of Hans Dietrich and Jonathan de Halleux.
I also implemented in the class the possibility of detecting & reading from tar files.... |
| | Total Hits: 14 | Today: 0 | Author: jacky_zz | Rating:  |
| |  This article is an improved edition of my article: Play Wave Files with DirectSound and Display its Spectrum in Real Time - Part 2. In this article, I add MP3, WMA, WAV, and OGG Vorbis support, which need Windows Media 9 or higher support, and I do some extra work to reorganize code. Here have two articles were posted on Code Project before this article, they are listed below. * Play Wave file with DirectSound and display its spectrum in real time, this article is an original version, onl... |
| | Total Hits: 15 | Today: 0 | Author: Anneke Sicherer-Roetman | Rating:  |
| |  The MFC CFileDialog class only has provision for one default file extension, which is added to a filename if no extension is given. A file export functionality deals with possibly many different file extensions, that have to be added depending on the filetype chosen. The CFileExportDialog class does this. Moreover, when the user selects another filetype from the combobox, the extension in the filename editcontrol is automatically changed.... |
| | Total Hits: 27 | Today: 0 | Author: Paolo Messina | Rating:  |
| |  Today's HTML editors are very easy to use, they support visual editing as well as syntax highlighting and auto-formatting of HTML source, for both the beginner and the advanced user's happiness. But things like auto-indenting make your files bigger and bigger, so that you may want to reduce the download time of your pages. Here it comes, this little script.... |
| | Total Hits: 15 | Today: 0 | Author: HasAName | Rating:  |
| |  Currently, there are six kinds of Travian tasks supported:
* Upgrade task (upgrading resources or buildings) * Build task (the build task) * Develop task (used for Academy, Armoury and Blacksmith) * Training troop task (used for Barracks, Stable, Workshop, Palace and Residence) * Transporting resource task (used for Marketplace) * Troop dispatch task (used for rally point)... |
| | Total Hits: 44 | Today: 0 | Author: Rajkumar-Kannan | Rating:  |
| |  This article focuses on how a developer can write functions that allows him or her to manipulate Sparse files from within a Windows application. Sparse files are managed in a special way by the file system, and typically can contain several regions of unallocated and\or zeroed out ranges. The file system cleverly optimizes the on-disk consumption of storage by only persisting the allocated regions and just keeping track of unallocated regions as well as Sparse regions (zeroed out regions) in met... |
| | Total Hits: 34 | Today: 0 | Author: rlasse | Rating:  |
| |  When you read or write large files, valuable file system cache from other applications is being swapped out. This is not wanted if you know that your files are not going to be accessed again afterwards. As a result, most people have experienced copying a large file where after all applications feel slow and unresponsive for a period of time until they have recached. Especially on servers that need low latency, this can be a really large problem.... |
| | Total Hits: 27 | Today: 0 | Author: PenangDev | Rating:  |
| |  The DiskManager is a small class written in native C++.
It is a simple class to check disk information like total size, free space, used space, and clean up.
I faced a problem while my growing size of particular directory eventually took up my huge disk space. I used to dynamically create a subfolder in a few directories and store large files into them.... |
| | Total Hits: 65 | Today: 0 | Author: BruceWang_korea | Rating:  |
| |  There are plenty of SWF tools and libraries or frameworks with which you can use to 'generate SWF files on-the fly'. Like SSWF or Ming, ScoutLibrary, etc... And even in CodeProject, you can see many of those. Then why am I doing this? I hope this can be your starting point to build your own SWF libraries or Frameworks, just for fun or for any other purpose. I revised my sample program to be more intuitive. I mean, my original code was just a single CPP file, containing everything there and with ... |
|
|
|
|
|
|
|
|
|
|
|
|
|