R
r norman
I am converting a C++ MFC client-server application to C# dotNet and I
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.
In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.
would like to switch my TCP/IP messages to use dotNet remoting
concepts. I can successfully implement many remoting samples, for
example from Wrox Press Professional C#. However all of these find
have trivial objects that are invoked on the server. None has to
access any difficult data values to return to the client. I need to
access data maintained by class instances within the server
application. Yet the server object instantiated by the remote isn't
"connected" to the server application that I can tell.
Assembly.GetExecutingAssembly() indicates that the object is running
under the object's library dll and Assembly.GetCallingAssembly()
returns a windows system dll.
In MFC, all I would have to do from a server dll is call AfxGetApp()
and recast it to my CMainApp() derived class. Is there an equivalent
in dotNet or is there another way I can access the instance of my
server? As you may suspect, I am a newbie in C# and dotNet. It
might be trivial.