Upgrading form VB6 to VB.NET --> 'as Any' and library 'kernel32' problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gus
    New Member
    • Dec 2006
    • 1

    Upgrading form VB6 to VB.NET --> 'as Any' and library 'kernel32' problems

    Hi
    I've been asked to convert some code from VB 6 to Vb .Net and I've come across some problems. The main one is that the variable type 'any' is no longer supported. However, the library function I'm using has the 'as any'... so I'm at a loss how to convert the code. Any help would be greatly appreciated

    Thanks

    Code:
    'UPGRADE_ISSUE: Declaring a parameter 'As Any' is not supported. Click for more: ....
    'UPGRADE_ISSUE: Declaring a parameter 'As Any' is not supported. Click for more: .....
    
    Public Declare Function RtlMoveMemory Lib "kernel32" (ByRef dest As Any, ByRef src As Any, ByVal Count As Integer) As Integer
  • fahdzia
    New Member
    • Oct 2007
    • 1

    #2
    I had a similar situation and my data types were mostly String. So I converted them to String

    Comment

    Working...