vb6 calls dot net com object - sometimes does not work

H

HONOREDANCESTOR

I have a dotnet dll that is called by vb6. I've done various steps to
make the dotnet dll act like a com object, and my vb6 program is able
to work with it without problem.
But, I also have another vb6 program that uses the same dll. The vb6
program is an activeX exe.
So I have a vb6 program that calls the vb6 activeX exe which in turn
calls the dotnet com object. This does not work at all, in fact, it
gives an error:
"Run-Time error - The system cannot find the file specified
(80070002)."
I doubt anyone has the answer to this, but if you do, its appreciated.
-- HA
 
A

Armin Zingler

I have a dotnet dll that is called by vb6. I've done various steps
to make the dotnet dll act like a com object, and my vb6 program is
able to work with it without problem.
But, I also have another vb6 program that uses the same dll. The
vb6 program is an activeX exe.
So I have a vb6 program that calls the vb6 activeX exe which in turn
calls the dotnet com object. This does not work at all, in fact, it
gives an error:
"Run-Time error - The system cannot find the file specified
(80070002)."
I doubt anyone has the answer to this, but if you do, its
appreciated. -- HA


Just a guess: Have you additionally put all Interop assemblies into the same
path as the ActiveX Exe? (or a sub dir if you use a config file) Regasm is
not sufficient.

BTW, there's microsoft.public.dotnet.framework.interop


Armin
 

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