Plat_Init ();//the return value of 0
Int iUserhandle=Plat_LoginCMS (" 192.168.0.105 ", "admin", "12345", "80");//here can't get normal return value, leading to unable to login
Int nError=Plat_GetLastError ();
If (iUserhandle==1)
{
AfxMessageBox (_T (" user login fail "));
}
IUserhandle return to 1, normal should be above 0, Plat_GetLastError () returns a value of 0, says there are no mistakes, it is difficult to understand
CodePudding user response:
The following is a function thatPlat_Init
Function name intPlat_Init ()
Functional description initialized platform interface
Parameter specifies no
Return value successfully returns 0, error return 1
Note initialization interface call it only once, before calling any interface, you must call Plat_Init complete initialization,
User login
1.3 Plat_LoginCMS
Function name int Plat_LoginCMS (
Const char * cscmsURL,
Const char * csUserName,
Const char * csPSW,
Const char * csPort
Int iLoginType)
Functional description login to specify platform
Parameter specifies cscmsURL center management server address (e.g., "172.7.150.2")
CsUserName user name
CsPSW user password
CsPort login port (80)
ILoginType login type
The return value & gt; 0 is successful, returns a handle to a session, when the error return 1
Note the login type parameters as parameters, the default is 0
ILoginType defaults to 0
CodePudding user response:
You don't have to, ask manufacturer these internal thing not many people knowCodePudding user response:
Manufacturers have compiled exe file, have a try,CodePudding user response:
The manufacturers, there are generally provide demo, you look at their demo how to fill out, and the right of the CMS configuration, if there is any license rights, etc.,Best and hai kang developer communication, here it is hard to get concrete answers,
Security products, ah, it is a configuration is too much,, a configuration is wrong, have a problem,
CodePudding user response:
Reference the official SDK documentation, and sample programsCodePudding user response:
Their own DEMO also not line, is to communicate with factory, with the development of sea kang communication more troublesome, must want to mailCodePudding user response: