CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Client / Server

  1. #1
    Join Date
    Oct 1999
    Location
    Austria
    Posts
    10

    Client / Server

    Hi there,
    I developed a project as follows:
    Database: IBM-UDB
    Userinterface: VB
    Databasemodule: PLI-Dll
    (VB calls PLI-dll calls Database) works fine if the Database and the VB(PLI) are within the same network, but slow when the database is to called via ISDN (VB and PLI are in the same network) database is in a network 200 km in a different town.
    I think, it would be a good idea, to solve this with winsocks?
    e.g. VB-client (network a) calls VB-server (network b) and the server loads the PLI-Dll (network b).The database resides also within network b. I tried it - it works, if the server is already started. But I've got no idea:
    1. how to start the server from the client
    2. what if there are more than one client
    3. how to handel the server, if the client (or one of the clients) crashes?
    I know, a lot of questions, but any help would be appreciated.
    Regards,
    Peter



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Client / Server

    you might also want to take DCOM via http into consideration.
    In VB 6 the CreateObject function takes a server as an argument which allows you to create COM objects remotely.
    COM offers all the environment for instantiating objects, releasing them, handling requests from multiple clients and so on...


  3. #3
    Join Date
    Oct 1999
    Location
    Austria
    Posts
    10

    Re: Client / Server

    Thank you Lothar, for your response,

    but would you have a small example, just as a hint, because I'm not familiar whith COM, instanting objects and so on... (I tried to avoid this until now)
    Thanks in advance
    Peter


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured