Smart Pointers (C++)

Smart pointers are very useful feature of modern C++ programming model. They are defined in the std namespace in the <memory> header file. Let’s see the raw and smart pointer in action: void rawPointer() { sql::Driver * driver = sql::mysql::get_driver_instance(); sql::Connection* connection = driver->connect(host, user, pass); //use connection //remember delete driver; delete connection; } void … Read more

Visual C++ DataGridView – data binding

DataGridView is a control introduced in .NET Framework version 2.0. displaying data in customizable grid.  The control can be used in any application developed on .NET Framework using any language (C++, C#, VB) based on CLR (Common Language Runtime). The control can be customized through manipulating of DataGridView class properties. Some of them are: DefaultCellStyle, CellBorderStyle, … Read more

ActiveMQ-CPP bug

I was faced with strange bug in ActiveMQ-CPP library recently. I just wanted to make sure that message broker (ActiveMQ) redelivers not acknowledged messages to the consumer applying some delay. For example 10 seconds. Let’s say that consumer processes message and some error occurs like there is no connectivity to the external system where processed … Read more