The Wayback Machine - https://web.archive.org/web/20111028022435/http://www.codeguru.com/cpp/misc/samples/

    Samples

    [Updated] Rubix Cube (not yet reviewed)

    This program presents an original way of the famous Rubik's Cube by an assembly of 27 multi-colored cubies isolated in the space. Even during its deformations, it allows a 3D vision of the cube thanks to the basic MFC graphic functions. This simulation can also rapidly calculate a solution to reordering the Cube.

    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.

    C++ Programming: Implementation of the Licensing System For a Software Product

    This article is devoted to the development of the key licensing system for the applications. In the theoretical part of the article, we will examine the cryptography methods, which can be used while implementing the licensing system. Also we will discuss all pros and cons of these methods and select the possible ones for using in the application. In the practical part of the article, we will provide the implementation of the simplest licensing system, which guaranties the protection from cracking even if a hacker knows the source code of an algorithm.

    Simplex Optimization Algorithm and Implemetation in C++ Programming

    The article introduces the simplex algorithm, provides a useful C++ function to optimize target function parameters, and shows rich examples, figures, flowcharts. source code is also attached with the article.

    An Efficient Pointer Wrapper in C++ for Scientific Computation

    This article introduces a simple wrapper template.

    C++ Tutorial: Pointer-to-Member Function

    Botao Jia discusses the grammar of the C++ Pointer-to-Member Function, common applications and under-the-hood implementations.

    Microsoft 'Hotfixes' Office 2003 Rights Glitch

    The software giant moves quickly to address a problem impacting older, rights-managed documents.

    Installing SQL Server 2008

    Need your server and your site up and running quick? Let Greg Larsen show you what you need to know to get SQL Server running and configured.

    [Updated] Template Metaprogramming and Puzzle 15 Optimal Solution

    Read about a sample demonstrating how to accelerate finding an optimal Puzzle 15 solution using C++ Template Metaprogramming. It presents an implementation of the IDA* search algorithm.

    Parallel Lint

    Understand the new direction in development of static code analyzers - verification of parallel programs. The article reviews several static analyzers which can claim to be called "Parallel Lint".

    Seven Steps of Migrating a Program to a 64-bit System

    The article describes the main steps which should be performed to correctly port 32-bit Windows applications on 64-bit Windows systems. Although the article is meant for developers using C/C++ in Visual Studio 2005/2008 environment, it will be also useful for other developers who plan to port their applications on 64-bit systems.

    How to Handle Currencies

    Learn about a C++ mechanism to handle and manipulate different currencies.

    [Updated] Compiling and Integrating Crypto++ into the Microsoft Visual C++ Environment

    Learn how to compile and integrate Crypto++ into the Microsoft Visual C++ environment.

    In Praise of the Lowly Comment

    See how to make comments in your code more useful & effective for you and your fellow developers.

    Message Only Window

    Learn how to build an efficient library to provide support for Message Only Windows. The article also shows how to use the Thunk32 library provided in an earlier article, as well as some general pointers on good practices and patterns.

    SMBIOS Demystified

    Discover a basic SMBIOS parser that demonstrates querying for SMBIOS info using WMI and then parsing the data to extract necessary information.

    Bulletproof Windows XP

    Currently, this is the best way to protect XP systems from malware and accidental changes.

    [Updated] Creating the "Marriage" Card Game

    A collection of card games. (The article and downloadable project and source code were updated.)

    A CDXMenu Class for the CDX Library

    The CDXMenu class delivers a fast and easy way to create a menu using CDX classes and the CDXBitmapFont class for computer games.

    Cross-Platform Game Development for C++ Developers, Part V: OGRE 3D

    The Object-Oriented Graphics Rendering Engine (OGRE) enables you to quickly and easily produce applications with hardware-accelerated 3D graphics by abstracting all the details of using the underlying system libraries. See for yourself.

    Cross-Platform Game Development for C++ Developers, Part IV: ClanLib SDK

    Although the cross-platform C++ framework ClanLib is focused primarily on the game developer, you could easily use it to develop a scientific 3D visualization tool or multimedia application as well. Take a look under the hood of this versatile API.

    Cross-Platform Game Development for C++ Developers, Part III: The 3D Irrlicht Engine

    Although open source, the high-performance Irrlicht Engine offers state-of-the-art features normally found in commercial 3D engines. Find out what they are and how to use them.

    Cross-Platform Game Development for C++ Developers, Part II: The Allegro Platform

    Get an under-the-hood look at the Allegro open source gaming library, and then dive into demo that will show how to get up and running.

    Airplanes: Bomber, a Socket-Based Game

    An online puzzle game.