The Function Pointer Tutorials
5.1 Introductions to Function Pointers
- Using Member Function Pointers A detailed article from the borland community. Originally intended for their product BC3.1 but in fact platform independent and still updated. [Article]
- Classes having Pointers to Members Chapter 15 of the C++ Annotations by Frank Brokken. [Tutorial]
- C++ FAQ-Lite FAQ of the newsgroup news.comp.lang.c++. This link points to the part about pointers to member functions. [FAQ]
- Pointing to Class Members A short and practical article about how to work with pointers to member functions. [Tutorial]
- Declaring Function Pointers and Implementing Callbacks A short and practical article about function pointers in C. Also says something about calling conventions which belong to a function's signature. [Tutorial]
- Notes on Function Pointers Short one page tutorial tries to illuminate the idea of generic programming: Seperating algorithm and data. Example of how to use function pointers with container classes, i.e. calling a user supplied function for each container element. [Tutorial]

5.2 Callbacks and Functors

- PC Assembly Tutorial Good tutorial about assembly. Here you can get an insight in what happens if a function is called. Covering calling conventions and how to interface assembly and C code. [Tutorial]
- The Virtual Function Mechanism A short page about the virtual function mechanism used by Microsoft's Visual C++ compiler. [Article]
last updated: 06 January 2005 © 2000-2005 by Lars Haendel
The source code presented was highlighted using my free Source to HTML Converter tool.