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

Thread: MTS

  1. #1
    Join Date
    Sep 2001
    Posts
    4

    MTS

    I have created a COM DLL which i have registered in the server with the MTS. I have loaded DCOM98 onto my client machine and configured it.now my application which has to run the COM Component has no references in the project.When i run the project ... it has no references ... gives an error message "USER DEFINED TYPE NOT DEFINED".. I want to know if i have done all the formalities correct or if something is pending.If evrything is done right then what else do i have to do for my application to access the component?
    How can i test?


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: MTS

    If you don't add a refference to the object in your project, you can only use CreateObject. You must also dim your objects as object, dimming them as Mydll.Mycomponent will give the error you are getting.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    May 1999
    Location
    Canada
    Posts
    1

    Re: MTS

    Basically you need to register your DLL on client side. At the very beginning youur component must be registered in to the MTS environment on your server side. Once registered just select component you want to use and chose Export option from the Action menu. MTS will make Export package. Make a copy of this package on your client computer and Run it. You can also choose to run package directly from your server. That’s all. Once you run your package all information about your component will be registered on your client side. Always instantiate your component with CreateIstance method on the MTS Object Context. Otherwise your component will load into the client memory and work as regular ActiveX DLL not as the MTS DLL. There are also other disadvantages but...

    Good Luck!



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