Results 1 to 3 of 3

Thread: Working with Component Services

  1. #1

    Thread Starter
    Addicted Member morphman2000's Avatar
    Join Date
    Oct 2000
    Location
    Europe, The Netherlands
    Posts
    254

    Working with Component Services

    I've created a class. For debugging-reasons, I first started an standard EXE project and added a Class module. After finishing my Class I copied the class-code into an ActiveX-Dll and compiled it. When I use it as a Reference.... no problem, but now this:

    I want to distribute my Dll as a Class on MTS-Component services. Well, did that, worked fine. I got a summary of all the methods in my class-dll. But now, I want to go programming with that class, distributed in MTS.

    I have tried this(and several other options):

    Code:
      Dim objObject as Object
      Set objObject = CreateObject("Name.DllName","Server")
    but when I want to work with it,
    1: I won't get a drop-down-box with all the methods, which you will get if you use the dll as a reference.
    2: I am getting errors, over and over again. For example, when my method parses a Recordset, I want to place that in a local recordset, but it gives me the error: Object variable or with block not set. Very strange, cause I did everything the same as in the Debug-program, except my dll isn't local, but it's on an MTS.

    What am I doing wrong? Does someone has any experience with component services?

    I hope you understand what I mean, because my technical english isn't so good...

    tnx a lot!

  2. #2
    jim mcnamara
    Guest
    Basic COM heuristic -

    A really good in-process COM object usually does not work in MTS.
    You need to learn about marshaling parameters to port to DCOM.

    The programmers at Microsoft who work on COM/MTS are required to read:

    Programming Distributed Applications with COM+ and Microsoft Visual Basic 6.0

  3. #3

    Thread Starter
    Addicted Member morphman2000's Avatar
    Join Date
    Oct 2000
    Location
    Europe, The Netherlands
    Posts
    254
    Does someone has an anwser which really helps me?

    Links?
    MSDN Links?
    Samples?

    Tnx....

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