hello priya,
do read this links
http://www.codeguru.com/Cpp/Cpp/cpp_...le.php/c10557/

http://www.newty.de/fpt/callback.html

with regards
kaustubh