vb6程序自动转换到vb.net的问题
'UPGRADE_ISSUE:不支持将参数声明为“AsAny”。单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redi...
'UPGRADE_ISSUE: 不支持将参数声明为“As Any”。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1016"”
Private Declare Function RasEnumConnections Lib "rasapi32.DLL" Alias "RasEnumConnectionsA"(ByRef lprasconn As Any, ByRef lpcb As Integer, ByRef lpcConnections As Integer) As Integer
'UPGRADE_ISSUE: 不支持将参数声明为“As Any”。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1016"”
Private Declare Function RasEnumEntries Lib "rasapi32.DLL" Alias "RasEnumEntriesA"(ByVal reserved As String, ByVal lpszPhonebook As String, ByRef lprasentryname As Any, ByRef lpcb As Integer, ByRef lpcEntries As Integer) As Integer
Private Declare Function RasHangUp Lib "rasapi32.DLL" Alias "RasHangUpA"(ByVal hRasConn As Integer) As Integer 展开
Private Declare Function RasEnumConnections Lib "rasapi32.DLL" Alias "RasEnumConnectionsA"(ByRef lprasconn As Any, ByRef lpcb As Integer, ByRef lpcConnections As Integer) As Integer
'UPGRADE_ISSUE: 不支持将参数声明为“As Any”。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1016"”
Private Declare Function RasEnumEntries Lib "rasapi32.DLL" Alias "RasEnumEntriesA"(ByVal reserved As String, ByVal lpszPhonebook As String, ByRef lprasentryname As Any, ByRef lpcb As Integer, ByRef lpcEntries As Integer) As Integer
Private Declare Function RasHangUp Lib "rasapi32.DLL" Alias "RasHangUpA"(ByVal hRasConn As Integer) As Integer 展开
3个回答
展开全部
<Marsharl As UnmanagedType.Any> As Object
VB6.0中的As Any,在VB.NET里用Object代替,前面加上<Marsharl As XXX>属性,有提示的,自己看吧
VB6.0中的As Any,在VB.NET里用Object代替,前面加上<Marsharl As XXX>属性,有提示的,自己看吧
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<Marsharl
As
UnmanagedType.Any>
As
Object
VB6.0中的As
Any,在VB.NET里用Object代替,前面加上<Marsharl
As
XXX>属性,有提示的,自己看吧
As
UnmanagedType.Any>
As
Object
VB6.0中的As
Any,在VB.NET里用Object代替,前面加上<Marsharl
As
XXX>属性,有提示的,自己看吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
As Integer 可以
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询