Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

Posted

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...