I created a basic Hello World type of function and compiled it as a VB6
ActiveX DLL in the hopes that I could call it from C#. When I try to add a
reference to the DLL in the C# IDE I get an error message stating:

The reference could not be added. Please make sure that the file is
accessible, and that it is a valid assembly or COM component.

Is it not possible to call a function within a VB6 ActiveX DLL from C#?

Thanks!

JW

Re: Calling a VB6 ActiveX DLL from C# by Peter

Peter
Sat Mar 15 15:09:39 CDT 2008

Have you registered the COM object?



Re: Calling a VB6 ActiveX DLL from C# by Jerry

Jerry
Sat Mar 15 22:45:13 CDT 2008

You mean as in regsvr32?

"Peter Morris" <peter[dot]morris(at)capableobjects.com> wrote in message
news:uA6cEithIHA.4536@TK2MSFTNGP06.phx.gbl...
> Have you registered the COM object?
>
>



Re: Calling a VB6 ActiveX DLL from C# by Peter

Peter
Sun Mar 16 17:11:05 CDT 2008

I presume that is "Yes" then. Sorry, I don't have any experience of COM so
that was the only thought I had on the matter.

Pete



Re: Calling a VB6 ActiveX DLL from C# by Martin

Martin
Tue Mar 18 06:35:18 CDT 2008

On Mar 16, 3:44 am, "Jerry West" <j...@comcast.net> wrote:
> You mean as in regsvr32?
>
> "Peter Morris" <peter[dot]morris(at)capableobjects.com> wrote in message
>
> news:uA6cEithIHA.4536@TK2MSFTNGP06.phx.gbl...
>
> > Have you registered the COM object?

Can you access the VB6 ActiveX DLL from a VB6 application?