Migrating VB6 to .NET

Quan69

New member
Joined
Aug 10, 2011
Messages
1
Programming Experience
1-3
Public Function NewEnum() As IUnknown
NewEnum = mPoints.[_NewEnum]
End Function

I get error:
'IUnknown' is not accessible in this context because it is 'Friend'

Also receive:
'_NewEnum' is not a member of 'Microsoft.VisualBasic.Collection'

Looking in object browser at 'IUnknown' and '_NewEnum', these are hidden.

Anyone know how to convert this function to VB .NET?
 
The answer is pretty much that you wouldn't. What you would do is evaluate what functionality you are trying to provide and then write the best VB.NET code you can to implement it. What you're asking for is knida like saying that you are going to now use a car instead of a horse and you want to know how to convert the horses leg.
 
Back
Top