Installing ActiveX Controls For Communicating With Mitsubishi Microcontrollers

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 Control To register the ActiveX component so that is shows up on your toolbox, choose Tools and select Add/Remove Toolbox Items: Click the Com Components tab and choose the DLL which …

Continue reading ‘Installing ActiveX Controls For Communicating With Mitsubishi Microcontrollers’ »

Object Detection Using the OpenCV / cvBlobsLib Libraries

A short example of how to utilize various open source library functions that can be used to identify and analyse strongly connected components for a given input image. In the example I have given here, the image represents microarray sample spots printed to a slide using a Xaar inket printer.  Using our robotic equipment, a …

Continue reading ‘Object Detection Using the OpenCV / cvBlobsLib Libraries’ »

A Genetic Algorithm Based Routing Optimization Tool

(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 optimal set of virtual paths in ATM networks. In broadband ATM networks, the cellD based switching capacity is frequently built over digital cross connect …

Continue reading ‘A Genetic Algorithm Based Routing Optimization Tool’ »

Maintaining Recent File Lists in MFC Applications

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 running the AppWizard to create a standard view-based application, but making sure to uncheck the Document/View architecture box, as well as the ActiveX Controls box …

Continue reading ‘Maintaining Recent File Lists in MFC Applications’ »

How to Create Resizable Dialogs in MFC

Example 1: Using Paulo Messina’s Code Project sample A minimalist use of the CResizeableDialog class as described by Paulo Messina at CodeProject .   Hope you find the following recipe useful. Visual Studio 2003 source code is downloadable from here. 1. Create a new MFC Project 2.  In the resource editor, add a simple edit control …

Continue reading ‘How to Create Resizable Dialogs in MFC’ »

Avoiding Circular Dependencies using Observer Patterns in C++

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 in the Model, all views attached to the Model should be notified and their statuses updated accordingly. In simpler terms, class A needs to know …

Continue reading ‘Avoiding Circular Dependencies using Observer Patterns in C++’ »