VB6 upgrade to VB.net

J

js

I newly installed Windoz Vista on my machine. I am trying to upgrade
several VB6 ACTIVEX DLLs to VB.net. I tried to open the original VBG
in Visual Studio 2005. The VB Upgrade Wizard was automatically
launched and tries to convert the VB6 projects. None of the VB
projects in the group are converted. The wizard asked that these
projects to be opened in VB6 and be compiled suceessfully before
VS2005 can convert them. So I digged out my many years old VB6 CDs
and installed on my Vista machine. In each of the project, there are
some reference missing. So I used text editor to correct the obvious
reference paths. All was fine. When I tried to run the Make option
from File menu, all DLLs has "Compile Error" and some had highlight
on the following line:

Dim oContext As COMSVCSLib.ObjectContext 'ObjectContext reference of
the current MTS transaction.

and some with "variable not defined" and had hightlight on the
following line:

Set oCoord =
GetObjectContext.CreateInstance("STPB_School.ICoordinator")

According the Project Reference the "ASPType Library" is missing but I
can't find them anywhere in my Vista machine. In addition, since I am
using Windoz Vista Business Edidion, I wonder if MTS can be installed
on this version of Windoz.

Thank you for your help.
 
A

Armin Zingler

js said:
I newly installed Windoz Vista on my machine. I am trying to
upgrade several VB6 ACTIVEX DLLs to VB.net. I tried to open the
original VBG in Visual Studio 2005. The VB Upgrade Wizard was
automatically launched and tries to convert the VB6 projects. None
of the VB projects in the group are converted. The wizard asked
that these projects to be opened in VB6 and be compiled suceessfully
before VS2005 can convert them. So I digged out my many years old
VB6 CDs and installed on my Vista machine. In each of the project,
there are some reference missing. So I used text editor to correct
the obvious reference paths. All was fine. When I tried to run the
Make option from File menu, all DLLs has "Compile Error" and some
had highlight on the following line:

Dim oContext As COMSVCSLib.ObjectContext 'ObjectContext reference
of the current MTS transaction.

and some with "variable not defined" and had hightlight on the
following line:

Set oCoord =
GetObjectContext.CreateInstance("STPB_School.ICoordinator")

According the Project Reference the "ASPType Library" is missing but
I can't find them anywhere in my Vista machine. In addition, since
I am using Windoz Vista Business Edidion, I wonder if MTS can be
installed on this version of Windoz.

Thank you for your help.


I don't know about the "ASPType Library", but the declarations above are
located in the "COM+ Services Type Library".


Armin
 
N

na

Thank you very much. Afert adding the COM+ Service Type Library, I
ran into another problem "Error accessing system registry" when I
tried to make the DLL. This is Windows Vista system. I may need to
open the source as "Administrator" mode, but there is no way I can
open it in that mode. Thank you for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top