Category: C++ / MFC / STL
These instructions pertain to the use of Visual Studio 2010, but barring one or two differences should be reasonably applicable to other versions of Visual Studio as well. Much of …
A brief and hopefully to the point on getting up and running with OpenGL in an Ubuntu Linux environment. For setting up OpenGL in Windows / Visual Studio environments, please …
Listing1: Serialization of STL containers: a std::vector example using text archivesYour intuition may tell you to iterate through the STL container in order to serialize it, but it’s actually a …
1. Download and extract the SWiG interface:Windows version available here:http://prdownloads.sourceforge.net/swig/swigwin-2.0.9.zip
A static library is simply a file that contains functionality that can be made available to other programs. Static libraries end with the .lib extension and are made available to …
There are plenty of resources on how we may recursively search and print the contents of binary trees. This example shows how to (recursively) make use of the Boost serialization …
These instructions, also available on the Microsoft site, show how to create from scratch a Visual Studio 2010 project that can utilize dll routines created elsewhere, by way of referencing. …
For another example posts on functors (function objects) see here. A functor is an instance of a C++ class that has the operator() defined. One big advantage of functors is …
Some code samples I have collated in the sample below, that demonstrate how boost::function can be assigned with functors, ordinary functions, class member functions and overloaded class member functions respectively. …
This post assumes that the boost libraries have been downloaded and extracted to the directory of your choice. See this previous posting for more details on how to download and …