Click to See Complete Forum and Search --> : client/server application


jasie24
March 15th, 2004, 04:32 AM
in .NET what means client/server application ,how can i make an application to work as server application,or as client.
What's the procedure,the steps to follow.
for example in VB6,there is a standard exe(as client),and ActiveX EXE as a server application,when i decide to do a pair of client/server applications.
Many thanks to all ...

coolbiz
March 15th, 2004, 06:31 AM
Client/server application is just a design spec and can be implemented by any programming language in many ways.

You can have a server listening to a TCP port and processing incoming request from clients that connect to that port.

In VB6 COM, you can have an out-of-proc COM object (mostly referred to as ActiveX) that acts as a centralized point to process common routines like retrieving data from the DB.

In .NET, you'll have options like .NET Remoting, Webservice and the good old TCP/IP implementations.

-Cool Bizs

jasie24
March 16th, 2004, 03:10 AM
thanks for informations
About VB6 COM ,and the process centralized you're speaking ,that reads from DB,can you give some links to some documentation,codes,to see how it is implemented a COM,and how it reads data from databases from a remote server.
For .NET too it would be very helpful some links,documentation about that classes you mentioned.
Thanks. i'm very grateful!

coolbiz
March 16th, 2004, 05:57 AM
I've not done VB6 COM in a while. You can go and search VB forum and I bet you'll be able to find more information about it there.

For .NET Remoting, MS has a sample that you can download and look at. It is very simple but does illustrate the answer to your question.

MSDN Sample - .NET Remoting How-To (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpqstart/html/cpsmpnetsamples-howtoremoting.asp)

Click on the SINGLETON SAMPLE. That is what you need, an object that only gets created once and shared by other processes.

-Cool Bizs