----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Still_Looking_Out Message 4 in Discussion Hi! Understand that the concept of notifying entity A that some work has been done is achieved via the concept of events. An event is raised by the source when some work is done, and all those who have registered to be notified when the work is done, are notified by the OS by means of the event. Now, this notification is no different than a public method of the entity-to-be-notified being invoked by the event source. This implies that the event source must know what kind (arguments taken, return types, etc) of method it will be calling to notify the registered entity. This information is given to the event source by means of delegates, which are function types: declaring what kind of functions they can refer to. This is quite similar to having function pointers in C++ that take an address of the function whose signature they match. Thus using function pointers, and delegates in .NET, one could dynamically invoke different methods in different interested entities that need some kind of notification. Check these URIs; they should help reinforce the concept: http://www.codeproject.com/managedcpp/csdeleg01.asp http://www.codeproject.com/managedcpp/csdeleg01.asp http://msdn.microsoft.com/library/en-us/csref/html/vcwlkEventsTutorial.asp http://www.nedcomp.nl/support/origdocs/dotnetsdk/csref/vcwlkdelegatestutorial.htm Regards, Kumar Gaurav Khanna Microsoft MVP - .NET, MCSE Windows 2000/NT4, MCP+I WinToolZone - Spelunking Microsoft Technologies http://www.wintoolzone.com/ OpSupport - Spelunking Rotor http://opsupport.sscli.net/ ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
