Author: Michael Gonzalez
Frequently Answered Questions
Miscellaneous

File Text Search & Replace Utility
HTML Text Extraction using innerText
E-mail (CDONTS.NewMail) Sample Code
SQL Server 7.0/2000

Incorporating ASP and SQL Server
100's of T-SQL Scripts
Don't Use @@ERROR with UPDATE Statements
Exporting Tables to Text Files
Creating SQL Server Databases
ASP (SQL) Query Analyzer
Increasing SQL Server Performance with Indexes
Distributed SQL Server Transactions & Queries
COM/COM+ Development
What is COM?
Isn't ActiveX and COM the same?
How can Components benefit my ASPs?
Am I using COM Components now?
How do I use COM Components in my ASPs?
Creating your First COM Component
Creating a COM Component that uses ASP Intrinsic Objects
Creating a COM Component to access an MS-Access Database
MTS Component Template
MSMQ Component Template / Example

Creating VB6 MTS Components

If you are not alreadt familiar with creating basic COM components, this tutorial is NOT for you. Please read my previous articles for an understanding of this concept.

The following is a template you can use with Visual Basic 6 ONLY - use the template as a basis for developing MTS components.

VB6 MTS Component Template (ActiveX DLL Project):


Adding your Component to MTS in Windows NT:
  1. Open the Microsoft Transaction Server Explorer.
  2. Navigate to the Console Root\Microsoft Transaction Server\Computers folder.
  3. Click on the My Computer icon.
  4. If MS DTC is not started, right-click on My Computer and click on Start MS DTC.
  5. Click on the Packages Installed folder.
  6. Right-click on the Packages Installed folder then click on New\Package.
  7. Click on Create an empty package..
  8. Enter the name of the package then click on the Next button.
  9. Click on the This user: radio button.
  10. Enter a username and password that will be used by the MTS package of components.
  11. Click on the Finish button.
  12. Navigate to where your newly created package is and open it.
  13. Click on the Components folder.
  14. Right-click on the Components folder then click on New\Component.
  15. Click on Install New Component(s).
  16. Click on the Add files... button and navigate to where your MTS component is located.
  17. Click on the Finish button.
  18. YOUR DONE!
You can now instantiate your component within an ASP like you would any other component (SET obj = Server.Create("Prog.Class")).
Comments & Questions Form

Send It!