?
Solved

Register DLL on MTS!!! Very quickly.

Posted on 2000-04-01
4
Medium Priority
?
1,241 Views
Last Modified: 2012-08-13
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
0
Comment
Question by:Diem
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Expert Comment

by:GUIGUY
ID: 2676135
Hopefully you went through the necessary steps for creating an MTS DLL.  There are special design considerations that you must make for doing so.  If you didn't and would like to know more, you can get this great book on this subject:
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.
0
 
LVL 2

Expert Comment

by:arikka
ID: 2676289
GUIGUY,
Ok,I got PAK file created on MTS machine. How can I register all components on the client machine using this PAK file ?
0
 

Expert Comment

by:GUIGUY
ID: 2676322
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.
0
 

Accepted Solution

by:
TechBytes earned 600 total points
ID: 2679386
Hi Diem
     In Mts if u want to use u'r component u have to  create a Package in the MTs exploere (Microsoft Transaction Explorer).
     Once u have created the Package on u'r machine ,add the compnent to the package(Just by right clicking the package u will get the option for adding the components to the package.)

 Aftet doing this u have to write the respective code in VB setting the reference to MTs object and write u'r functioanlity
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question