Discussion Locked

VB6 - Run time error '91'

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i wanted to start some MTS instances in a VB6 EXE application. i've added the MTS Type Library reference, and

Dim objCtx As ObjectContext
Set objCtx = GetObjectContext()

but i still get this run time error when it reaches the SetComplete line, why?
i've experience in using MTS in AxtiveX DLL, but i can't use the some approach in EXE.

7 replies

by glen_mcleod

The answer to your question is in the last line, you can't do it from a standard exe ( I don't even think you can do it from an ActiveX exe) *unless* you're actually running on the computer that is your MTS server.

Glen

by ohjani

if it can't be used in EXE, then how do i reuse my DLLs? any workaround?

This discussion is closed to new replies.