----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: sujithvarrier Message 2 in Discussion In brief this is what called "event", where the delegate is defined at the server and client passes fn pointer to the remote server which is of the type defined at the server. But this wont work in remoting since the remote server is unable to accept a pointer from client, since it is completely unaware of the client type (Detailed explanation is there in msdn). In that case u may say that then should i make a reference to the client lib at the server..:-) No answer from my part, i heard just keeping the client executable and server dlls etc in the same bin will work...I ahvent checked that... I think the following is one recommened approach that i ahve seen in msdn... Create an abstract class, which inherits marshalbyref class with two methods, keep method2 as abstract and call method 2 from method 1 Now create a class at the client which is actually responsible for receiving notifications from the server. For that, make this class inherit from the foresaid abstract class, since this class in not abstract u need to implement Method2 here...override of Method2 is supposed to contain implementations of our interest. The pointer that we should pass to remote server is that of Method1 and as u know the server identifies the type on which method1 resides, hence our problem is solved (both server and that "special" abstract class are in the same assembly). I hope this will solve your problem with the usage of fn pointers in remoting. And one more thing if u get it worked by keeping all the components in the same directory let me know, please '---------------------------------------------------------- One more thing.... If your requirement is just to make the server call a method of an object thats passed to the server from the client... I think the following we can try Make an interface at the remote assembly (IClient), IClient contains a method say, notifyMe() make a method at the remoting server which accepts an argument of type IClient, keep that reference at the server The server can call the method notifyMe and the cleint side implemetation would be executed. At cleint make a class that implements IClient. Implement notifyMe method with the implementation of our interest Make an instacne, pass it to server. '-------------------------------------------------------------- regards Sujith ----------------------------------------------------------- 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]
