Results 1 to 6 of 6

Thread: COM+ Questions

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    12

    COM+ Questions

    Hello, first let me tell you what I'm trying to do.

    I need to setup a client/server system, the client is basically just a nice GUI. The server does all the database interaction and calculations I need it to do. Because of security I can't do these on the client.

    Basically from the looking around I've done it looks like COM+ is the way to go about connecting these two. I set up some test stuff in the Component Services program and started it. That wasn't a problem.

    My problem is, how do I code this in VB to connect to the remote server and use the class's I've created?

    Yes I'm new to this so any info/sites (example would be best :-)) you can provide would be appreciated, though most of the sites I've found have plenty of info about COM+ but no examples of how to use it. :P

    Thanks!

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    12
    Alex, thanks but I've read that and I already know how to write classes. :-)

    Andre, not sure if I understand 100% here. This exe file that goes with the client, does that allow me to just create the object like usual?

    Can you give me a little code that would go in the client to create an instance of my class?

    Normally I would just do something like this:

    Dim objSomething As CClass
    Set objSomething = New CClass

    Does the same apply here?

  3. #3
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    No problem. You will not need a reference since you cannot use early binding. This leaves you with Late binding.

    You should instantiate your objects as follows:

    Dim objSomething as Object
    Set objSomething=CreateObject("YourDll.YourClass")

    And thereafter just as usual.

    André

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    André, linked to this one (after reading this I tried some experimenting)
    Could you take a look at this please :
    http://forums.vb-world.net/editpost....&postid=326195

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    12
    Alright, thanks!

    So when I include the file that is made in component services I just have to use late binding and it should work from any client? The file made already knows where the server is and all that?

    If so, sounds good to me. :-)

  6. #6

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    12
    Another quicky.

    COM+ makes a windows installer file ( .MSI I think) not an exe. When you say this needs to be run on each client, do you mean they have to actually run it or does it happen automatically?

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