VB.NET VB6 Interop problems

istante

New member
Joined
Feb 16, 2004
Messages
2
Hi,

I referenced a VB6 dll from within VB.NET and it worked as expected. However, when i made a change to the VB6 dll (exposed another method) re complied it and tried to re-reference it, the newly exposed method does not appear in the object brower within VB.NET.

I checked the COM references tab and its pointing to the right place.

Please help.
:confused:
 
Hi Robbie.

Thanks for your response.

Yes I did. I realised what the problem was. I was returning a specific type of object which was why this method was not appearing. When i changed the return type to Object recompiled, registered and referenced the VB6 dll it worked. Not sure why I had to do this in VB.NET as this was not a problem in VB6. Once the variable of type object was returned I just used the cast function ensure the type I wanted.

Regards
 
Back
Top