C代码如下:
typedef void* H_SERVER;
RST_CSDK_API int RSTC_Login(IN const char* pszIP, IN short usPort, IN const char* pszUsername,
IN const char* pszPassword, IN const char* pszDomain, OUT H_SERVER *hServer);
我的C#调用代码
[DllImport("RST_CSDK.dll", CharSet = CharSet.Ansi)]
public static extern RSTErr RSTC_Login(string pszIP, Int16 usPort, string pszUsername, string pszPassword, string pszDomain, out IntPtr hServer);
一直报错