Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Callback

Callback

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wow9999
    wrote on last edited by
    #1

    Dear all What is Callback? (difinition) when is Callback being used? Thanks

    W D 2 Replies Last reply
    0
    • W wow9999

      Dear all What is Callback? (difinition) when is Callback being used? Thanks

      W Offline
      W Offline
      wb
      wrote on last edited by
      #2

      example: you want to copy a lot of data.. (10000 GB) this take a long time... and you want to show some kind of progress for the user. so the copy_function have a "callback" parameter, that is a functionpointer to a function, you must suply. the copy_function calls from time to time your "callback" function, so you can show the progress to the user. I hope, this helps.

      1 Reply Last reply
      0
      • W wow9999

        Dear all What is Callback? (difinition) when is Callback being used? Thanks

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        wow9999 wrote: What is Callback? (difinition) Per MSDN, it's function that receives messages from the operating system. wow9999 wrote: when is Callback being used? It's used whenever your application needs to be notified of something happening elsewhere. Some examples of functions that utilize callback functions are EnumFontFamilies(), EnumWindows(), qsort(), and RegisterClass().


        "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups