Callback fuction

This is a discussion on Callback fuction within the C++ Programming forums, part of the General Programming Boards category; would any body tell me about the concept behind callback functions...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    11

    Callback fuction

    would any body tell me about the concept behind callback functions

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,548
    The concept is that you pass the address of a function to another function and that function can call that function you passed as a "callback." It can pass information or call it during certain events, and so on.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    I think callback functions are more of a C concept, which have been replaced by function objects (functors or delegates) in C++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 08-24-2008, 11:39 AM
  2. Replies: 3
    Last Post: 07-19-2008, 03:12 PM
  3. Implant a callback inside a class
    By Rune Hunter in forum C++ Programming
    Replies: 3
    Last Post: 12-14-2005, 07:20 PM
  4. typesafe callback system
    By gandalf_bar in forum C++ Programming
    Replies: 1
    Last Post: 05-22-2004, 06:35 AM
  5. Pointer to member function as callback function
    By ninebit in forum C++ Programming
    Replies: 10
    Last Post: 03-01-2002, 04:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21