Click to See Complete Forum and Search --> : MTS


antzy
September 17th, 2001, 08:04 AM
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?

Cakkie
September 17th, 2001, 09:01 AM
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
slisse@planetinternet.be

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

Aurelio
September 22nd, 2001, 04:12 AM
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!