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
Peter Morris - 15 Mar 2008 21:09 GMT
Have you registered the COM object?
Jerry West - 16 Mar 2008 04:44 GMT
You mean as in regsvr32?
> Have you registered the COM object?
Peter Morris - 16 Mar 2008 23:11 GMT
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
Martin Bonner - 18 Mar 2008 12:35 GMT
> You mean as in regsvr32?
>
> > Have you registered the COM object?
Can you access the VB6 ActiveX DLL from a VB6 application?