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: [crayon-5a0f6c6edee7b869974027/] As we can see there is a clear advantage of using smart pointers instead of the raw ones. The standard library provide three smart pointer types which should be replacement for raw pointers as long as new code is developed: unique_ptr allows one and only one owner

Continue Reading

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, GridColor, just to name a few. That is the short introduction do DataGridView Control. However, what I would like to concentrate in this post is

Continue Reading

Site Footer