Delay Load Dlls Error Recovery – Putting the ‘D’ back in the Dll
Dlls instead of static libraries offers many advantages. Mainly, each Dll module can be replaced relatively safely without the need to compile the whole program, as long as the Dll’s interface does not...
View ArticleAsynchronous Message Handling in MFC
The issue I’m going to describe is sort of a solution to an inherited problem in the MFC programming environment. According to the MFC architecture, all messages are handled synchronously. Of course,...
View ArticleOperator new Surprises in VC6
The following item is a must for every Visual C++ 6.0 programmer which uses operator new. The default behavior of operator new in Microsoft Visual C++ 6.0 in case of an error is to return NULL, in...
View ArticleImplementing Callback Functions Using Delegates in C++
Nice C++ object oriented code basically means writing everything in objects/classes. However, not everything we need in programming is classes. This article concentrates on callback functions, and...
View ArticleImplementing a Message Dispatcher in Multi-Core Environments
Multi core programming presents different challenges than traditional parallel computing. In this article we will explore a programming paradigm called ‘the dispatcher’ and its implementation in...
View ArticleEasy DWORD-Alignment of Binary Structures
Information stored in binary data structures is an area so fundamental that there is hardly any field in the industry that doesn’t relate to the parsing or extracting of binary memory sources. However,...
View ArticleEasy tricks for optimizing common string operations
When implementing a data structure that contains strings, or a string based key, its most basic functionality would probably be to search the existence of a query string. Whether this data structure...
View Article