CallBack function
Article Writing
2
Posts
2
Posters
0
Views
1
Watching
-
Can some one brief ma abt callback() function and just explain me with a small example otherwise please point me to some place where i can get acquinted with this function thanks chandu
// The callback function type typedef void StepProc(); // the callback function void Step() { cout << "."; } void DoSteps(StepProc* pProc) { for (int i = 0; i < 10; i++) { (*pProc)(); } } void TestCallback() { //Call DoSteps() with ::Step as the argument ::DoSteps(::Step); } Michael S. Scherotter Lead Software Architect Tartus Development, Inc.