Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MTS error in VB 6 SP3
Message
De
16/04/2001 11:02:58
 
 
À
13/04/2001 17:24:41
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00495453
Message ID:
00495778
Vues:
9
>Environment:
>Visual Studio 6.0 Enterprise SP3
>Windows NT4.x Workstation SP6a
>MTS For NT workstation from Visual Studio Enterprise CD 2
>
>I have built a VB ActiveX DLL for use in MTS (not Win2000 COM+)
>When I run the DLL in debug mode I am told that I have the wrong version
>of MTS installed to do Transactions. I use a launching program an step through the code. I use Implements ObjectContext in Declarations section.
>
>When I run accross the first line that uses the ObjectContext I get nothing.
>
>var = MTXAS.GetObjectContext Returns nothing
>
>
>Why?
>
>Code as is, works if placed on a Win2000/COM+ machine.

GetObjectContext will return nothing if the DLL is not running within the context of an MTS package. IOW you would have to create a package and add the DLL to it.

There are several articles on debugging MTS DLL's but at this time it escapes memory. I believe the MSDN has one.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform