![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to be able to use .Net Remoting in order for a client to call a remote object on a server, and then have the server update a control in a form based on that call. From what I can tell, when an object runs on the server it does not know anything about the application that it is running inside of and the application knows nothing about it. This means that the remote object could not access any controls or data inside the application and the application could not access any member variable or functions inside the object. Is there a way to get around this? |
#3
| |||
| |||
|
|
ZacharyDallas <zacharydal... (AT) yahoo (DOT) com> wrote innews:1194900257.801019.67060 (AT) o38g2000hse (DOT) googlegroups.com: I want to be able to use .Net Remoting in order for a client to call a remote object on a server, and then have the server update a control in a form based on that call. From what I can tell, when an object runs on the server it does not know anything about the application that it is running inside of and the application knows nothing about it. This means that the remote object could not access any controls or data inside the application and the application could not access any member variable or functions inside the object. Is there a way to get around this? Yes, get your form to host a singleton object. The singleton object can either broadcast events or have a direct reference to the parent form and call functions on the form. If you're starting a new project, take a look at WCF - much more flexible than remoting. |
#4
| |||
| |||
|
|
I may or may not be able to use .NET 3.0 and WCF. Meanwhile, in the reading I've done I've seen references to singleton objects but not much information or examples on how to use them in remoting. Does the form know the address of the singleton object? In the examples I have seen it registers it but does not know its address. How does the singleton go about calling into the form? How does it get the address of the form it is being hosted in? And, how does it know the functions available in the form? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |