During migration from VB to VB.NET if you
are getting error as "'As Any' is not supported in 'Declare'
statements." with following type of code
'UPGRADE_ISSUE:
Declaring a parameter 'As Any' is not supported.
Declare Function FindWindow Lib "user32" Alias "FindWindowA"(ByVal
lpClassName As String,
ByVal lpWindowName As
Any) As Integer
Solution: -
Find all the references of
method “FindWindow” in project and
check which type of values are passed to method “FindWindow”. Replace “Any” with passed value data type. If more
than one data types are used then create overloaded method.
Declare Function FindWindow Lib "user32" Alias "FindWindowA"(ByVal
lpClassName As String,
ByVal lpWindowName As
String) As Integer
No comments:
Post a Comment