Category: C++ / MFC / STL
Just some simple examples posted here as a means of easy lookup…
I recently needed to revisit this to create simple monochrome bitmaps representing the sets of nozzles turned off/on on a Xaar microarrayer printhead. Sample code here. Essential steps are outlined …
Creating the byte arrayThis post describes a means of taking data in the form of raw pixels containing RGB values as well as the image height, width and the number …
Declaring and initializing multi-dimensional arrays in C++ can be done not just by way of traditional pointer arithmetic, but using the STL / Boost libraries as well. Here are some …
Another recent re-revisit was necessary, this time to enable USB-based as well as COM-based communication between PC and Mitsubishi PLC microcontrollers. Registering the ActiveX ControlTo register the ActiveX component so that …
(For source code see this updated post.)Introduction This post describes the use of a tool written in C++ that could be used to assist a network designer in establishing an …
A simple application in Visual Studio 2003 that builds on the “MyPad” application provided by Jeff Prosise in Programming Windows with MFC. Alternatively you could probably create the same by …
Example 1: Using Paulo Messina’s Code Project sampleA minimalist use of the CResizeableDialog class as described by Paulo Messina at CodeProject . Hope you find the following recipe useful. Visual …
Kruskal’s algorithm is used to find the minimal spanning tree for a network with a set of weighted links. This might be a telecoms network, or the layout for planning …
The basic concept is when you want information stored in one object, called the Model (or subject) to be watched by other objects, called Views (or observers). When information changes …