Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Enterprise
Expertise: Beginner
Aug 14, 1999



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Basic Requirements for Creating MTS Components in Visual Basic

A MTS component in VB should be an ActiveX DLL project, because MTS components by definition can only be ActiveX DLLs (and not EXEs). In order to work with MTS, it is also important to remember that all classes within this ActiveX DLL project must have their Instancing property set to 5-MultiUse, which is the default setting.

Also, MTS requires that Visual Basic components use Apartment threading. So make sure that Apartment Threaded, which is the default, is selected in the Project Properties dialog box. If you want to use the MTS object model, it is required to add a reference to the Microsoft Transaction Server Type Library (mtxas.dll) in the Project References dialog box.

Jai Bardhan
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date