istante Posted February 16, 2004 Posted February 16, 2004 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: Quote
Moderators Robby Posted February 16, 2004 Moderators Posted February 16, 2004 Did you unregister/register the dll ? Quote Visit...Bassic Software
istante Posted February 17, 2004 Author Posted February 17, 2004 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 Quote
Recommended Posts