Alex Maghen
8/13/2004 6:07:00 PM
Hi. I've built the exact example given in the KB-307445 and related articles
(Creating a remote server in C#.NET). Everything works great. Now here's
where I need some help:
In the examples, they say to build a DLL which contains the "ServerClass"
(that which will be accessed by the client application). THEN, you have to
create a RemoteServer EXE which sets up the Listening, etc. That's fine.
My question is this: How can I provide my "ServerClass" access to the
classes that make up the RemoteServer EXE? For example, let's say that my
RemoteServer EXE is actually a windows application and it has a Form,
"MainForm". And let's say that MainForm has a public method "TurnGreen()".
How can I have my ServerClass - which is defined in a separate DLL - get a
reference to my MainForm so that it can call "MainForm.TurnGreen()"?
Thanks!
Alex