What are callback functions?
I have read a lot of articles but not able to understand.. plzz explain
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Krishna GaradRank #191 · 12.8K reputationPosted Mar 3, 2011, 7:42 PM EST
ex. say you are sending some mail but you don't want to wait upto that mail will reach @ destination instead you want to perform other task. For acknowledgement of your mail send function you can use this CallBack function.
Thread are not seafty cause of many resion. So we in most of the cases use Asyncronous processing.
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 3, 2011, 8:29 PM EST
Krishna GaradRank #191 · 12.8K reputationPosted Mar 3, 2011, 8:35 PM EST
Suthish NairRank #92 · 22.8K reputationPosted Mar 7, 2011, 9:17 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Jun 8, 2011, 5:37 PM EDT
In C#, delegates are usually used instead of a calback. Or you could say that a delegate is the C# way of doing a callback. Experienced C# programmers know that not all functions called by a delegate execute in a separate thread. Windows must use a callback mechanism because it is unmanaged code.
Managed code was not even a twinkle in Bill Gate's eyes when Windows was first developed. When Windows was first developed, not even C++ was a standard.