Diem
asked on
Register DLL on MTS!!! Very quickly.
Hi all
I create an ActiveX DLL in Visual Basic 6.0
How can I register this DLL on MTS ?
Especially, how can my client application use this DLL registered on MTS ?
Thank you
I create an ActiveX DLL in Visual Basic 6.0
How can I register this DLL on MTS ?
Especially, how can my client application use this DLL registered on MTS ?
Thank you
GUIGUY,
Ok,I got PAK file created on MTS machine. How can I register all components on the client machine using this PAK file ?
Ok,I got PAK file created on MTS machine. How can I register all components on the client machine using this PAK file ?
Sorry, I forgot to let you know that there is a "clients" directory underneath the folder you exported to. Just run the setup program in that folder on the client machine. Don't forget to install your DLL's on the client machine, too - possibly in your main setup program. I don't recall at the moment, but I don't think the setup program installs the DLLs. Not sure about that.
This is just one solution for having your client machines connect to your MTS object(s). There is a more difficult way to do it, too - by using DCOM Config, but you have to do this on every machine, which is a cumbersome, laborious task.
The setup program that you created by exporting will configure the client machine for you.
Hope this helps! You should go get a copy of that book by Ted Pattison - he did a great job with it. It goes into detail about creating MTS components.
This is just one solution for having your client machines connect to your MTS object(s). There is a more difficult way to do it, too - by using DCOM Config, but you have to do this on every machine, which is a cumbersome, laborious task.
The setup program that you created by exporting will configure the client machine for you.
Hope this helps! You should go get a copy of that book by Ted Pattison - he did a great job with it. It goes into detail about creating MTS components.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://mspress.microsoft.com/prod/books/2137.htm
You can still use just about any DLL in the MTS environment. In order to use MTS, simply create a "package" inside of MTS. This package contains a list of all of your components. Once you create a package, drag your DLL from Windows Explorer into it. It will automatically register the DLL and make it ready to use.
In order for your clients to use it, you can right-click on the package and select "Export". This will create a setup program for the client application. Simply run the setup program on your client and it will use the MTS version of the DLL.