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