COM Objects in VB.NET

R

Remulac

I'm trying to run a COM object that I created in VB.NET
inside another VB.NET program.

I'm running into problems with I try to use "CreateObject
()" -- I get the error message, "Cannot Create ActiveX
Object". After that, I try to instantiate it with "New",
but I don't see the object anywhere in the object browser.

The COM object was registered in the registry when I built
it. I see it listed there, but I can seem to access it.

Any ideas?
 
N

Norman Yuan

Let's see what you want:

Develop a .NET object (.DLL?) --> Make it a COM object (and register in
windows) --> try to use the COM object in .NET app, rather than the original
..NET object.

Why? You should:

Develop a .NET object --> use it in any .NET app.
 
A

Andrew Faust

Norman Yuan said:
Let's see what you want:

Develop a .NET object (.DLL?) --> Make it a COM object (and
register in
windows) --> try to use the COM object in .NET app, rather than
the original
.NET object.

Why? You should:

Develop a .NET object --> use it in any .NET app.

I agree with Norman. However, if you really do need to create a
COM object, the way I always use them in .NET is to just add the
object as a reference then I let the IDE generate the .NET
wrapper around the object, and I just use that. It has seemed to
be the easiest method so far.

Andrew Faust
 

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