HHNET_Startup
HH5PLAYER_InitSDK
HH5PLAYER_SetDecoderQulity
HH5PLAYER_InitPlayer2
HH5PLAYER_OpenStream
上面函数调用应该都成功了,返回0
可是执行HHNET_LogonServer返回998,失败了,这是为什么?
函数定义:
FUNCTION ulong HHNET_LogonServer(ref string pServerIP,uint wServerPort,ref string pDeviceName,ref string pUserName,ref string pUserPassword,ulong dwClientID,ref ulong hLogonServer, ulong hNotifyWindow) LIBRARY "HHNetClient.dll"
调用如下:
HHNET_LogonServer(pServerIP, wServerPort, pDeviceName, pUserName, pUserPassword, dwClientID, hLogonServer, hNotifyWindow)
请高手帮帮忙,谢谢!
------解决方案--------------------
FUNCTION ulong HHNET_LogonServer(char pServerIP[128],uint wServerPort,string pDeviceName,string pUserName,string pUserPassword,ulong dwClientID,ref ulong hLogonServer, ulong hNotifyWindow) LIBRARY "HHNetClient.dll" alias for "HHNET_LogonServer;ansi"