Using examples of defects found in Miranda IM, Andrey Karpov will formulate some recommendations that will help you to avoid many errors and misprints at the code writing stage.
Latest Miscellaneous Articles - Page 4
C++ Tutorial: The Do's and Don'ts of Accessing One Element Past the End of an Array
A buffer overflow is the result of writing to an element that is outside the boundaries of an array. And yet, certain algorithms need to access the address of one element past the end of an array, albeit with a few important restrictions. Here's the why and how.
MFC: Controlling Notepad From C++ Applications
Discover how to start and control a third party GUI application, particularly the Notepad text editor, from your own C++ applications.
C++ Programming: Stack Allocators for STL Containers
This article describes how to create stack based allocators for use with STL containers.
C++ Programming: A Better Vector Trim Algorithm With Move Semantics
Vectors are one of the single most useful and most used objects in the STL. They are easy to use, and remove the burden of memory management from the user. It is possible to partially control memory usage by using functions like reserve, but nothing is provided to free up excess memory. Users have come up with ways to trim a vector by hand, but with the advent of the new C++0x and its move semantics, the classic solution of copy-swaping has become excessively expensive. This article seeks to find a better solution.
An Interview with C++ Creator Bjarne Stroustrup
Bjarne Stroustrup talks about the imminent C++0x standard and the forthcoming features it brings, the difficulties of standardizing programming languages in general, the calculated risks that the standards committee can afford to take with new features, and even his own New Year's resolutions.
Latest Developer Videos
More...Latest CodeGuru Developer Columns
MFC Integration with the Windows Transactional File System (TxF)
The Transactional File System (TxF), which allows access to an NTFS file system to be conducted in a transacted manner through extensions to the Windows SDK API. MFC 10, has been extended to support TxF and related technologies. This support allows existing MFC applications to be easily extended to support kernel transactions.

LINQ to Objects Refresher
LINQ is not only for database access; it’s useful in all manner of scenarios. Read this quick refresher to learn more.

Creating Simple Classes and Objects with Visual Basic
Learn how to create your own class and create objects representing that class using Visual Basic.
Working with State Machines in the .NET Framework
Arun Karthick introduces you to the state machine model and shows you how to create a simple working state machine sample using the .NET framework in the C# language.



