1、 <DllImport("SURE32WC.DLL", EntryPoint:="init_com", SetLastError:=True, CharSet:=CharSet.Auto, ExactSpelling:=True, CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function init_com(ByVal str_Renamed As Integer) As Short
End Function
2、 'Public Declare Function init_com Lib "SURE32WC.DLL" (ByVal str_Renamed As Integer) As Short
为调用一个init_com(porti)一直提示: 【【【【过程调用或参数无效】】】,好像就上面声明,跟没有声明是一回事
VB下一直非常稳定,转到.NET就报错!!!
最上面为引用方法,2种都试过了不行!!
------解决思路----------------------
Declare Auto Function init_com Lib "SURE32WC.DLL" Alias " init_com" ( ByVal Port As integer) As integer
------解决思路----------------------
把auto关键字去掉?