hi,
we have a .net component that we want to call from a vb6 application.
The .net component doesn't have a strong name and we don't have the code
for the .net component.
Is there any way to call the .Net component from the vb6 application ?
or is it just impossible ?
regards
Kaustav. - 21 Sep 2005 09:30 GMT
Hi Naim,
AFAIK you will not be able to do a CCW with that assembly. Strong naming is
required for COM Interop to work. And if you would still wan't to do it, you
would have to reconstruct the assembly (am i hinting at decompilers :p) and
then proceed the usual way to create a CCW.
> hi,
> we have a .net component that we want to call from a vb6 application.
[quoted text clipped - 6 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
TDC - 22 Sep 2005 13:58 GMT
No you don't have to strong name it. If you put the .NET component in
the same directory as you VB app, and then use RegAsm with the
/codebase option then you can access it fine.
Kaustav. - 22 Sep 2005 15:06 GMT
TDC is correct. It works. I was not aware of this. However you will get a
warning message for an unsigned assembly -
RegAsm warning: Registering an unsigned assembly with /codebase can cause
your assembly to interfere with other applications that may be installed on
the same computer. The /codebase switch is intended to be used only with
signed assemblies
. Please give your assembly a strong name and re-register it.
Types registered successfully
> No you don't have to strong name it. If you put the .NET component in
> the same directory as you VB app, and then use RegAsm with the
> /codebase option then you can access it fine.