Hi
The TestString method is the method I added into the VB.NET Class for test
purpose, have you tried to add it into the .NET class, also you can just
remove it?
> Public Function TestString() As String
> Return "Test From .NET"
> End Function
From the error it seems that the TestString is not properly exported so the
vb6 can not call into the TestString method.
So I think you may try to copy and paste my code and rebuild and then
re-regasm the VB.NET class library to see if the problem persists.
If you still have any concern, please feel free to post here.
Best regards,
Perter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
adam - 17 Jan 2005 14:31 GMT
I have added all of the code you posted.
With the AutoDual attribute, I get the Automation error when I call either
TestString or PrintRecordCount.
If the AutoDual attribute is not used, the VB6 application is able to call
the TestString method (I get the "Test From .NET" string back.) But when I
try passing a Recordset by calling PrintRecordCount, I get the QueryInterface
error.
Does Microsoft offer any example code for passing a Recordset from VB6 to
VB.Net? It seems like a fairly common task.
> Hi
>
[quoted text clipped - 19 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.