DllImport的问题
<DllImport("SiSDK.dll", entrypoint:="SDK_Init", CharSet:=CharSet.Ansi, setlasterror:=False, CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function SDK_Init(ByVal AHwnd As Integer, ByVal AChkCode As Char, ByVal AoMsg As Char) As Integer
End Function
SiSDK.dll也放到debug中了,还是报错无法加载 DLL“SiSDK.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。
接口动态库名称:SiSDK.dll
function SDK_Init(AHwnd:Integer;AChkCode:PChar;AoMsg:PChar):Integer;stdcall;