Understanding Function Pointers

A very advanced article that discusses the practical uses of function pointers from VCL events to Windows API callbacks.

As you probably know, a pointer is a variable containing a memory address. Most programmers use pointers to store the address of simple data types (such as a char, int or long), or to access class objects. What isn't well known is that functions reside in memory as well, and therefore it is possible to store the address of a function in a pointer

A HTML version of this article is available here

Publication: C++ Builder Developer's Journal
Issue: Volume 4, Number 7, July 2000

Comments

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.