News

Run-time human friendly names: Once a project has every C/C++ function entry and exit point instrumented via the gcc -finstrument-functions option, this means two generic functions will always be ...
Embedded C developers shy away from C++ out of concern for performance. The class construct is one of their main concerns. My previous article Code Craft – Embedding C++: Classes explored ...
Delegates are type safe function pointers *with an optional this pointer* thus no need to pass one round yourself. Obviously their utility is much enhanced in contract to C++ by virtue of being ...
If you have functions in a DLL written in C, you can use a preprocessor macro to make them easy to access from both C language and C++ language code. The __cplusplus preprocessor macro indicates which ...
I have read in several books (including a book on using QT toolkit) warning about using C++'s virtual function because of performance penalty.But they are quite vague on why this is so. Can ...
This month, I'll contrast the standard allocation and deallocation facilities in C with those in C++. Understanding the differences between these facilities is insightful regardless of which language ...
Sometimes a function is not available in a higher level API (COM or .NET) but only in the underlying C++ API. Not all is lost in such a case. In the following example we'll see how we can access the ...